I have been writing an OpenGL based game which uses both texture mapping and lighting. I realised that lighting did not appear to be working on all texture mapped areas. After some reading in the red book, I discovered that what I needed to do was separate the specular colour. This call should have done the trick.
glLightModeli (GL_LIGHT_MODEL_COLOR_CONTROL, GL_SEPARATE_SPECULAR_COLOR);
however my compiler came up with an error - the constants are undefined. Is this a great big hole in Apple’s implementation of OpenGL or is the red book talking analy. Anyway, what should I do?