Error: Invalid Drawable?

BlitzMax Forums/BlitzMax Programming/Error: Invalid Drawable?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

This piece of example code (not my actual app) produces the error:

SetGraphicsDriver GLGraphicsDriver()
GLGraphics (640,480,16,60,GRAPHICS_BACKBUFFER|GRAPHICS_STENCIL_BUFFER|GRAPHICS_ALPHABUFFER)


Whereas this piece of code is fine:
Graphics 640,480,16,60


However, this piece of code produces the error:

Graphics 640,480,16,60,GRAPHICS_BACKBUFFER|GRAPHICS_STENCILBUFFER|GRAPHICS_ALPHABUFFER


Somehow the flags perhaps are causing the error?

Also this piece of code is fine:
Graphics 640,480,16,60,GRAPHICS_BACKBUFFER
[code]
but this:
[code]
Graphics 640,480,16,60,GRAPHICS_BACKBUFFER|GRAPHICS_ALPHABUFFER

and this:
Graphics 640,480,16,60,GRAPHICS_BACKBUFFER|GRAPHICS_STENCILBUFFER

and this:
Graphics 640,480,16,60,GRAPHICS_BACKBUFFER|GRAPHICS_STENCILBUFFER|GRAPHICS_ALPHABUFFER

all do not work.