Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Display lists and glArrayElement()

  1. #1
    Newbie Newbie
    Join Date
    Oct 2012

    Question Display lists and glArrayElement()

    I have a display list which has glArrayElement() calls included in it. The problem is that I'm updating the data in the arrays (mostly vertex coords), but the newly updated data doesn't show up when painting the display list. It uses the old values that were present when the display list was created. I'm guessing the display list only fetches the array element values when the list is generated and uses the cached values rather than re-fetching them when the list is executed later. Is there a way around this while still using glArrayElements()?

  2. #2
    Senior Member OpenGL Lord
    Join Date
    May 2009
    Display lists don't reference vertex data stored elsewhere. They are an exact replica of what you did at the time they were created. This includes the contents of any vertices rendered at the time of creation.

    If you want to be able to modify the vertex data, use buffer objects, not a display list.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts