lighting fails in release

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???

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.)

What a lame misstake to do
That’s exactly what I did :stuck_out_tongue:

Thank you.