Weird lighting bug with software rendering

I’m working on a renderer that needs to work correctly with Windows’ software OpenGL.
Rendering a sphere with more than 1 light works fine when rendered by a graphics card, but in software gives the weird effect shown in the second picture. Do you have any idea what might be causing this?

In case anyone else has the same problem, the solution is to disable GL_COLOR_MATERIAL.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.