Then sit down and debug what’s the difference in OpenGL calls for both paths.
You’re setting the lighting parameters after you have rendered the frustum helper(?).
If the frustum helper has modified the modelview matrix, the light position is transformed by the current modelview matrix.
Then sit down and debug what’s the difference in OpenGL calls for both paths
there is no difference between the debug and release code
You’re setting the lighting parameters after you have rendered the frustum helper(?).
If the frustum helper has modified the modelview matrix, the light position is transformed by the current modelview matrix.
actually the frustumhelper modify nothing, it just compute the 6 planes (normal and distance values) so the light is till tied to the modelview matrix before frustum operation.
however the debug version works great now. it seems it’s another compile problem but i’m sure sure i did many rebuild all (using vc 6)…
weirdo.