Skip to main content
GameDev.net gamedev.net
🔒 Locked

glVertexAttrib* == NULL ?

Started by todderod Oct 11, 2004 at 7:12 AM 0 replies 800+ views
Original Post
todderod
todderod
Tried to pass on some vertex attributes to my shader programs but failed misserably, the function pointers to all glVertexAttrib* are set to NULL and thus I get a NULL pointer exception when trying to use them, however all other ARB functions works perfectly fine. What I am using is the nvidia SDK 8.0 headerfiles (i.e include glh/glh_extensions.h, gl/glext.h, gl/wglext.h). Now I am quite bedazzled to why all other functions work (e.g glUniformARB, glUseProgramARB etc etc) but the Vertex Attribs don't... What do i need to get them to work ? GetProcAddress needs handle to the modle where that function resides in, and i have really no clue to where it can be and google didn't help me, and tbh since the others work all fine that seems to be a unessesary thing to do.
_DarkWIng_
_DarkWIng_
I sugest you try another extension loading lib. GLee works just fine for me. Also make sure you use up-to-date drivers.
You should never let your fears become the boundaries of your dreams.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.