klepto 2 MiniB3D 0.4 Module crashes

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

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.

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