I’ve go a strange problem with VSP’s. Here’s the code:
//Load the Vertex state program
glEnable(GL_VERTEX_STATE_PROGRAM_NV);
glBindProgramNV(GL_VERTEX_STATE_PROGRAM_NV, m_BumpShader.StateProgramID);
glLoadProgramNV(GL_VERTEX_STATE_PROGRAM_NV, m_BumpShader.StateProgramID,
strlen((char*) m_BumpShader.StateProgString),
(unsigned char *)m_BumpShader.StateProgString);
//Load the Vertex Program
glEnable(GL_VERTEX_PROGRAM_NV);
glBindProgramNV(GL_VERTEX_PROGRAM_NV, m_BumpShader.programID);
CheckErrors();
glLoadProgramNV(GL_VERTEX_PROGRAM_NV, m_BumpShader.programID,
strlen((char * ) m_BumpShader.ProgString),
(unsigned char *)m_BumpShader.ProgString);
I checked this code with glGetError() and it returned GL_INVALID_ENUM at the call of glEnable(GL_VERTEX_STATE_PROGRAM_NV);
I own a GF3 with the 12.41 drivers…
When I debug nutty’s demo with VSP I got the same error, but his demo worked fine…
Any ideas?