Skip to main content
gamedev.net
๐Ÿ”’ Locked

invalid enumerant

Started by Endar Nov 1, 2005 at 5:47 PM 1 replies 600+ views
Original Post
Endar
Endar
Does anyone have an idea why I get this error:

before:: no error

after:: invalid enumerant
with this code?

case WORLD_MATRIX:
{
	GLenum temp = glGetError();
	printf("\nbefore:: %s\n", gluErrorString(temp));
			
	glMatrixMode(GL_MODELVIEW_MATRIX);
	glMultMatrixf(mtx);

	temp = glGetError();
	printf("\nafter:: %s\n", gluErrorString(temp));
}
break;
Isn't GL_MODELVIEW_MATRIX a valid enumerant?
[size="2"][size=2]Mort, Duke of Sto Helit: NON TIMETIS MESSOR -- Don't Fear The Reaper
jpetrie
jpetrie
for glMatrixMode you want to use GL_MODELVIEW.
GL_MODELVIEW_MATRIX is used for glGet*() flavor of functions to read back the actual modelview matrix.
Endar
Endar
Thanks, all fixed.
[size="2"][size=2]Mort, Duke of Sto Helit: NON TIMETIS MESSOR -- Don't Fear The Reaper

Topic Locked

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

Sign in to reply to this topic.