hieubt-seta / iphonewavefrontloader

Automatically exported from code.google.com/p/iphonewavefrontloader
0 stars 0 forks source link

Light objects Don't do GL_SHININESS #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Build the application
2. sprinkle errorcode = glGetError(); all over the place (actually, divide
and conquer works best...)
3. every time 
    glLightfv(GL_LIGHT0, GL_SHININESS, &lightShininess);
is called, note that errorcode is set to 1280, or 0x500 or GL_INVALID_ENUM

What is the expected output? 
glGetError() should return 0
The thing is that GL_SHININESS cannot be applied to light object. (Saw this
in a comment on one of Jeff's blog posts as well...)

What do you see instead?
1280, or 0x500 or GL_INVALID_ENUM

What version of the product are you using? 
May 13, 2009

On what operating system?
OS X 10.5

Please provide any additional information below.
Just remove lines 78 
    glLightfv(GL_LIGHT0, GL_SHININESS, &lightShininess);

and 84
    glLightfv(GL_LIGHT1, GL_SHININESS, &lightShininess);

Original issue reported on code.google.com by rnis...@gmail.com on 15 May 2009 at 4:47