-
__glewBindFragDataLocation = (PFNGLBINDFRAGDATALOCATIONPROC) wglGetProcAddress( "glBindFragDataLocation" );
if you add this to your code, it starts working. Somehow the variable isn't initialized.
2009-08-25 08:28:52 UTC in The OpenGL Extension Wrangler Library
-
I have to use the following code in my project, to make the transform feedback functions (as declared in OGL. 3.0) work. Without I get an access violation, because the function pointers apparently arent initialized.
void fixGLEW() {
// GLEW fucks up here somehow even though other GL 3.0 functions are loaded correctly
__glewTransformFeedbackVaryings = (PFNGLTRANSFORMFEEDBACKVARYINGSPROC...
2009-08-20 00:36:07 UTC in The OpenGL Extension Wrangler Library
-
The GL 3.0 specs declares glTransformFeedbackVaryings as:
void TransformFeedbackVaryings( uint program,
sizei count, const char **varyings, enum bufferMode );
glew declares the function callbackdecla as:
typedef void (GLAPIENTRY * PFNGLTRANSFORMFEEDBACKVARYINGSPROC) (GLuint, GLsizei, const GLint*, GLenum);
This is wrong, the third parameter needs to be const GLchar**
The NVidia...
2009-08-06 13:44:46 UTC in The OpenGL Extension Wrangler Library