Skip to content

Commit

Permalink
CStdGLCtx: Don't deselect the current context on context creation since
Browse files Browse the repository at this point in the history
secondary contexts don't get selected afterwards
  • Loading branch information
Fulgen301 committed May 19, 2023
1 parent cac0ab1 commit 03a775d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/StdGLCtx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ bool CStdGLCtx::Init(CStdWindow *pWindow, CStdApp *pApp, HWND hWindow)
hrc = wglCreateContext(hDC); if (!hrc) return !!pGL->Error(" gl: Error creating gl context");

// share textures
wglMakeCurrent(nullptr, nullptr); pGL->pCurrCtx = nullptr;
if (this != &pGL->MainCtx)
{
if (!wglShareLists(pGL->MainCtx.hrc, hrc)) pGL->Error(" gl: Textures for secondary context not available");
Expand Down

0 comments on commit 03a775d

Please sign in to comment.