PDA

View Full Version : is light share by multi RC?



aQ
05-22-2005, 06:50 AM
I have multi Render Context,I find some command like glEnable(GL_LIGHTING),glEnable(GL_LIGHT0)... is shared by these RC?
Am I right?

mikael_aronsson
05-23-2005, 05:16 AM
You can only share "resources" like display lists, textures, vertex arrays, fragment/vertex programs and so on, the current texture, lights and so on cannot be shared between two rendering contexts.

Mikael