From 03a775d1092e32059666c5fc613b8b186d60bff8 Mon Sep 17 00:00:00 2001 From: George Tokmaji Date: Fri, 19 May 2023 12:25:06 +0200 Subject: [PATCH] CStdGLCtx: Don't deselect the current context on context creation since secondary contexts don't get selected afterwards --- src/StdGLCtx.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/StdGLCtx.cpp b/src/StdGLCtx.cpp index 59d9bf656..261b533db 100644 --- a/src/StdGLCtx.cpp +++ b/src/StdGLCtx.cpp @@ -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");