Results 1 to 2 of 2

Thread: multiple rendering contexts?

  1. #1

    multiple rendering contexts?


    I have the following problem. I have severale rendering contexts but would like to share resources between them. I can share display lists easiely thru wglShareLists, but what about texture objects? Is there any way to share them?
    Maybe I dont need to do all this because there is a way to do it without multiple contexts, so here is my general problem. I need to support multiple windows. They might have different pixelformats so I can't just use one context and then change the destination DC with wglMakeCurrent.
    Any ideas? Thank you in advance.

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

    Re: multiple rendering contexts?

    wglShareLists also shares texture objects, but to the second half of your problem:

    MSDN doc on wglShareLists:

    "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."

    No way you can do that reliably among different processes and pixelformats.

Similar Threads

  1. Using efficently multiple rendering contexts
    By michele_m in forum OpenGL: Windows
    Replies: 3
    Last Post: 07-01-2008, 07:27 AM
  2. Multiple Windows & Rendering Contexts
    By Rennie Johnson in forum OpenGL: Windows
    Replies: 2
    Last Post: 09-08-2007, 11:55 PM
  3. Multiple Rendering Contexts
    By dannyhut in forum OpenGL: Windows
    Replies: 2
    Last Post: 02-10-2007, 06:15 PM
  4. textures with multiple rendering contexts
    By drumminj in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 12-29-2000, 08:39 PM
  5. Multiple Rendering Contexts in Windows...
    By xenovore in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 12-01-2000, 05:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean