Hi, I’m trying to enable multitexturing (my video support it!), but on glActive below, my application crash and appear ‘report bug error’ (i’m under winXP). Why this? Thanks
printf("after active multiTexturing
Probably you need to activate your function pointer with something like wglGetProcAddress or use one of extention loading library (for example glew).
I don’t understand how. I’m a newbie. I have incuding <GL/glew.h>…but occur this error at runtime…
you can get the function pointer the following way:
glActiveTextureARB = (PFNGLACTIVETEXTUREARBPROC) wglGetProcAddress(“glActiveTextureARB”);
you should check the pointer afterwards if it is null (in that case wglGetProcAddress wasn’t successful)
If you are using glew, ensure you have initialized it. (eg. called glewInit()? once you have a render context)