OGL MultiTexturing

BlitzMax Forums/BlitzMax OpenGL Programming/OGL MultiTexturing

Has anyone had any success in being able to use more that one texture unit? At the moment BlitzMax is crashing as soon as I issue a command like "glActiveTexture(GL_TEXTURE0)". I have just been modifying a cleaned up version of the sample maxcube.bmx code and I am not sure if its my lack of OGL knowledge or a problem with BlitzMax.

thanks
Richard.

PS I can post the code if necessary.

Might need to call glewInit() right after bglCreateContext(), have you got that in there?

You champion! It stopped the crashing - now to figure out how to use multitexturing :(

many thanks,
Richard.