GL: Move notification about debug context to common code

epoxy
Günther Brammer 2016-01-28 04:22:00 +01:00
parent 83cf09db1a
commit fd534c430e
2 changed files with 1 additions and 4 deletions

View File

@ -286,7 +286,7 @@ CStdGLCtx *CStdGL::CreateContext(C4Window * pWindow, C4AbstractApp *pApp)
if (first_ctx)
{
pMainCtx = pCtx;
Log(" gl: Create first context...");
LogF(" gl: Create first %scontext...", Config.Graphics.DebugOpenGL ? "debug " : "");
}
bool success = pCtx->Init(pWindow, pApp);
if (Config.Graphics.DebugOpenGL && glDebugMessageCallbackARB)

View File

@ -336,8 +336,6 @@ bool CStdGLCtx::Init(C4Window * pWindow, C4AbstractApp *pApp)
0
};
if (Config.Graphics.DebugOpenGL)
DebugLog(" gl: Creating debug context.");
hrc = wglCreateContextAttribsARB(hDC, 0, attribs);
}
else
@ -502,7 +500,6 @@ bool CStdGLCtx::Init(C4Window * pWindow, C4AbstractApp *)
if (glXCreateContextAttribsARB)
{
DebugLogF(" gl: Creating %s context", Config.Graphics.DebugOpenGL ? "debug" : "standard");
ctx = glXCreateContextAttribsARB(dpy, pWindow->Info, share_context, True, attribs);
}
else