PDA

View Full Version : Display List problem



mccloed3
09-07-2004, 09:47 AM
I'm using display lists to display text and primitives and switch between different text and prims using the display lists. One of my display lists isn't working correctly. It flickers when I tell it to draw and not draw. What could be causing the problem?

dorbie
09-07-2004, 02:58 PM
What do you mean when you tell it to draw & not draw?

You either call it or you don't, it is drawn or not drawn as directed by your application. There is no persistent state in OpenGL that would turn a display list on or off, *your* code either issues a glCallList or not.

You may have some confusing set of state in the list, before the list or you may have nested lists. Remember that state changes remain incremental when calling lists. Whatever state is lying around in the OpenGL pipeline persists even when you call the list, unless you have commands in the list to override or replace that state.