System halt in RenderWorld()

BlitzMax Forums/MiniB3D Module/System halt in RenderWorld()

Kistjes(Posted 2007) [#1]
Hello, I'm stuck with my project and I realy need your help.
I short while ago I tried (with success and a little help from this forum) to make a 2D interface with 3D elements in it. This was for a full screen touch-screen application. The results were impressive and everybody here is enthusiastic about the interaction design. So now we want to prototype this same interface in a windows environment. I use klepto's version of the miniB3D module for the 3D stuff and MaxGUI for the windows gadgets. And now something strange happens.

Please have a look at the following (stripped) code:


In the main loop I take care of the system events:


When the program runs ands wants to Render the 3D part of the interface, the programs halts on the following comand in RenderWorld3D() method in TGlobal.bmx
glActiveTexture(GL_TEXTURE0)


I have no idea what is going on and where to look for an error. I hope the problem is clear. Hopefully one of you genius can help me.


Kistjes(Posted 2007) [#2]
Ok. Seems that
SetGraphicsDriver(GLMax2DDriver())
did the trick.
Learning on the job.

Anyone interested in giving me a one or two day's course in BlitzMAX Graphics programming?