I found an old article that discusses this error:
http://www.exelisvis.com/Support/Help...
It look this error usually occurs when using Software rendering and IDLDE. If you switch from software rendering to hareware rendering (Window > Preferences > IDL > Graphics), does the error still occur?
If switching to hardware rendering doesn't help with the problem, then the workaround might be to use command-line IDL instead of the IDL workbench to use the IDL Function Graphics.