error with gui sample with module version

BlitzMax Modules Forums/MiniB3D/error with gui sample with module version

Import "../MiniB3D.bmx"

'Import sidesign.minib3d

basically the first time max2d has to use
Global gc:TMax2DGraphics
it finds it null

this works fine using the imported .bmx but fails in the straight module conversion

cant for the life of me see the problem !

ARRRGH ignore this need a break!

[edit] no its definitely doing it still, and I still need a break!

It works with the V0.41 module version.

if you use my module version, then you have to do this:

SetGraphicsDriver GLMax2DDriver(),GRAPHICS_BACKBUFFER|GRAPHICS_DEPTHBUFFER

Instead of :
SetGraphicsDriver GLGraphicsDriver(),GRAPHICS_BACKBUFFER|GRAPHICS_DEPTHBUFFER

ah! thanks Klepto, thought I was going mad!