• Advertisement

scarecr0w132

Member
  • Content count

    2
  • Joined

  • Last visited

Community Reputation

105 Neutral

About scarecr0w132

  • Rank
    Newbie
  1. OpenGL wglMakeCurrent - The handle is invalid

      Hi Vortez, as I said in my post GetLastError() code returned is : The handle is invalid. Thanks
  2. Hello,   I am fairly new to OpenGL, I don't fully understand everything yet :)   I have a viewer with a context. It is being drawn on the UI which has another separate context. (I am using QT for UI, and trying to draw widgets ontop of viewer.)  wglMakeCurrent() which gets called in the viewer code, fails and says from GetLastError(): wglMakeCurrent() failed. The handle is invalid. This is how it is called:   ... if (wglMakeCurrent ((HDC )myWindowDC, (HGLRC )myGContext) != TRUE) ... I uploaded the project if anyone wants to take a look. What is a likely cause of this?  
  • Advertisement