My favorites | Sign in
Project Home Downloads Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 2: 3dsplay out of bounds var causes opengl error
  Back to list
Status:  Fixed
Owner:  ----
Closed:  Jan 2010


 
Project Member Reported by jkypr...@gmail.com, Jan 20, 2010
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
Sorry, I meant to say I found mat->shininess to be 1.00 there.
Jan 21, 2010
Project Member #2 jkypr...@gmail.com
This issue was closed by revision r104.
Status: Fixed
Mergedinto: -

Powered by Google Project Hosting