PDA

View Full Version : openGL extensions



gihhache
08-05-2003, 02:48 PM
Having trouble being able to use the glTextureColorMaskSGIS extension. The following returns error 127: The specified procedure could not be found. I am not really sure why I cannot use this extension - I have included glext.h and wglext.h Anyone have any ideas??

void *extproc;
extproc = (void *) wglGetProcAddress("glTextureColorMaskSGIS");

if (extproc == NULL) {
printf("Error %u\n", GetLastError());
exit(0);
return;
}

al_bob
08-05-2003, 02:51 PM
Perhaps your hardware/driver doesn't support it? Or perhaps you don't have a valid GL context at the time?

gihhache
08-06-2003, 01:59 PM
I have the most recent OpenGLContext- how might I go about testing for validity?

jra101
08-06-2003, 02:02 PM
Call glGetString(GL_EXTENSIONS) and make sure that the extension you are trying to use shows up in the extension list.

jra101
08-06-2003, 02:09 PM
Just so you know, the GL_SGIS_texture_color_mask extension is probably not supported on any hardware other than SGI machines.

gihhache
08-06-2003, 02:09 PM
calling glGetString(GL_EXTENSIONS) returns (null) I bet i missed some step in installing the OpenGLContext.

al_bob
08-06-2003, 02:19 PM
(Assuming Win32)
Did you call wglMakeCurrent on a valid
context? Did you check the return value of wglCreateContext? Did you set a pixel format?