| Issue 2: | 3dsplay out of bounds var causes opengl error |
1 of 4
Next ›
|
| Back to list |
In render_node() as is, glGetError() can return GL_INVALID_VALUE. This is caused by the line glMaterialf(GL_FRONT, GL_SHININESS, pow(2, 10.0*mat->shininess)); Change that to glMaterialf(GL_FRONT, GL_SHININESS, min(128.,pow(2, 10.0*mat->shininess))); to resolve the issue. I've seen mat->shininess be 10.0 in file, GL_SHININESS should not be passed over 128.
Jan 20, 2010
Project Member
#1
jkypr...@gmail.com
|