Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 4 of 4

Thread: On display list sharing

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2001
    Location
    Hangzhou, P.R.China
    Posts
    20

    On display list sharing

    It seems that some devices do not support display list sharing by return FALSE when I call wglShareLists while others work well.

    How can I get rid of this problem?

    p.s. Where can I download a free copy of OpenGL with source code?

  2. #2
    Senior Member OpenGL Guru Relic's Avatar
    Join Date
    Apr 2000
    Posts
    2,527

    Re: On display list sharing

    Make sure your code does the correct thing.

    The manual says:
    "You can only share display lists with rendering contexts within the same process. However, not all rendering contexts in a process can share display lists. Rendering contexts can share display lists only if they use the same implementation of OpenGL functions. All client rendering contexts of a given pixel format can always share display lists.

    All rendering contexts of a shared display list must use an identical pixel format. Otherwise the results depend on the implementation of OpenGL used."

    p.s. Search for "MESA" to find an OpenGL implementaiton.

  3. #3
    Junior Member Newbie
    Join Date
    Dec 2001
    Location
    Hangzhou, P.R.China
    Posts
    20

    Re: On display list sharing

    But what the "identical pixel format" means?

    Sometimes I want to share lists between a memory(bitmap) context and a client context. The fields of dwFlags in the tructure PIXELFORMATDESCRIPTOR must be PFD_DRAW_TO_BITMAP and PFD_DRAW_TO_WINDOW, respectively. Does this means that the formats are not identical?

    Thank you!

    Originally posted by Relic:
    Make sure your code does the correct thing.

    The manual says:
    "You can only share display lists with rendering contexts within the same process. However, not all rendering contexts in a process can share display lists. Rendering contexts can share display lists only if they use the same implementation of OpenGL functions. All client rendering contexts of a given pixel format can always share display lists.

    All rendering contexts of a shared display list must use an identical pixel format. Otherwise the results depend on the implementation of OpenGL used."

    p.s. Search for "MESA" to find an OpenGL implementaiton.

  4. #4
    Senior Member OpenGL Guru knackered's Avatar
    Join Date
    Aug 2001
    Location
    UK
    Posts
    3,032

    Re: On display list sharing

    Yes, the draw_to_bitmap context won't even be hardware accelerated!
    Knackered

Posting Permissions

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