GL_COMPILE vs GL_COMPILE_AND_EXECUTE

Started by
3 comments, last by Daos 19 years, 9 months ago
What is the difference between GL_COMPILE and GL_COMPILE_AND_EXECUTE when making lists?
Advertisement
When compiling only, commands are not executed, just recorded and stored in the display list. With compile and execute, the commands are both executed AND stored in the display list.

You can see the compile and execute as just a compile followed by a call to the display list.
Bun when you call a display list don't you see the result of it?
Quote:Original post by Daos
Bun when you call a display list don't you see the result of it?


When you call it, yes. Not when you create it - unless you choose GL_COMPILE_AND_EXECUTE.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
Now I see ,thanks for the tip.

This topic is closed to new replies.

Advertisement