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: Check if there is an active context?

  1. #1
    Newbie Newbie
    Join Date
    Apr 2013

    Check if there is an active context?

    How would one do this?

    I'm on python 3.2 with a 32bit machine and Windows 7 OS

  2. #2
    Member Regular Contributor
    Join Date
    Aug 2008
    You can use wglGetCurrentContext or equivalent to figure out which OpenGL context is current on the thread that called wglGetCurrentContext. If it returns NULL there is no current OpenGL context on that thread.

Posting Permissions

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