View Full Version : lighting fails in release

08-27-2003, 11:04 AM
Using MSDEV 6.0
Got one light in my scene. (GL_LIGHT0)

Works fine in debug mode but when compiling an "release" version, light is gone or totally wrong.

Any idea what this is???

08-27-2003, 12:58 PM
Do you by any chance use glLightfv to set the GL_POSITION, and have an array with only 3 elements? (It should have 4, the fourth being used to specify if it's a directional light, or a positional light.)

08-28-2003, 02:55 AM
What a lame misstake to do http://www.opengl.org/discussion_boards/ubb/smile.gif
That's exactly what I did :p

Thank you.