klepto 2 MiniB3D 0.4 Module crashes

BlitzMax Forums/MiniB3D Module/klepto 2 MiniB3D 0.4 Module crashes

JonasL(Posted 2007) [#1]
I have just downloaded and installed the klepto 2 MiniB3D 0.4 Module. It crashes when I run the gui.bmx example from Simon's MiniB3D 0.4. BlitzMax reports "Unhandled Exception: Attempt to access field or method of Null object". The crash occurs in SetBlend(), which is called from RenderWorld(). klepto2 has hacked the Graphics3D(), which is circumvented in the gui.bmx code, so you need to change the gui.bmx example from this

SetGraphicsDriver GLGraphicsDriver(),GRAPHICS_BACKBUFFER|GRAPHICS_DEPTHBUFFER

to this
SetGraphicsDriver GLMax2DDriver(),GRAPHICS_BACKBUFFER|GRAPHICS_DEPTHBUFFER