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 2 of 2

Thread: how to handle two OGL windows

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2002
    Posts
    8

    how to handle two OGL windows

    I have created a main OgL window. On this OGL windowi have a window for selection of few objects. In selection window i have a small OGL window for objects preview. When i Create OGL window on my selction window my mailn OGL window does not show me any thing. But if i donot create a samall OGL window on my selection window my main OGL window works fine. How can i solve my problem.

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

    Re: how to handle two OGL windows

    Make sure you synchronise your wglMakeCurrent() calls between the 2 windows.
    Only one rendering context can be current at any one time.
    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
  •