PDA

View Full Version : glDrawRangeElements



FurnaceMan
03-04-2003, 10:56 AM
I am trying to load the GL extension that allows me to use glDrawRangeElements in VC++6. I have the glext.h header installed and in the declaration section of my .c file I have:

PFNGLDRAWRANGEELEMENTSPROC glDrawRangeElements = (PFNGLDRAWRANGEELEMENTSPROC) wglGetProcAddress("glDrawRangeElements");
assert (glDrawRangeElements);

I get an error C2099: initializer is not a constant

How do I install this function??

shinpaughp
03-04-2003, 02:34 PM
Try passing "glDrawRangeElementsEXT" to wglGetProcAddress instead.

[This message has been edited by shinpaughp (edited 03-04-2003).]