error with gui sample with module version

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

Chris C(Posted 2007) [#1]
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 !


Chris C(Posted 2007) [#2]
ARRRGH ignore this need a break!

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


simonh(Posted 2007) [#3]
It works with the V0.41 module version.


klepto2(Posted 2007) [#4]
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


Chris C(Posted 2007) [#5]
ah! thanks Klepto, thought I was going mad!