forked from Mirrors/openclonk
GL: Move notification about debug context to common code
parent
83cf09db1a
commit
fd534c430e
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue