Give a better warning message when exceeding nr of lights OpenGL limit. Try to catch attempts at using getMaxGLSources() outside a valid GL context.
Give a better warning message when exceeding nr of lights OpenGL limit. Try to catch attempts at using getMaxGLSources() outside a valid GL context.

Alexpux/Coin3D,Alexpux/Coin3D,Alexpux/Coin3D,Alexpux/Coin3D