gsdx-ogl: glDebugMessageCallback is optional

Not even used in release build
This commit is contained in:
Gregory Hainaut 2015-05-31 17:55:34 +02:00
parent 9d69ff1f91
commit 9fa473a57d
2 changed files with 2 additions and 2 deletions

View File

@ -197,7 +197,7 @@ bool GSDeviceOGL::Create(GSWnd* wnd)
// Debug helper
// ****************************************************************
#ifdef ENABLE_OGL_DEBUG
if (theApp.GetConfig("debug_opengl", 0)) {
if (theApp.GetConfig("debug_opengl", 0) && gl_DebugMessageCallback) {
gl_DebugMessageCallback((GLDEBUGPROC)DebugOutputToFile, NULL);
glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB);
}

View File

@ -58,7 +58,7 @@ void GSWndGL::PopulateGlFunction()
*(void**)&(gl_GenVertexArrays) = GetProcAddress("glGenVertexArrays");
*(void**)&(gl_GetBufferParameteriv) = GetProcAddress("glGetBufferParameteriv");
*(void**)&(gl_GetDebugMessageLogARB) = GetProcAddress("glGetDebugMessageLogARB");
*(void**)&(gl_DebugMessageCallback) = GetProcAddress("glDebugMessageCallback");
*(void**)&(gl_DebugMessageCallback) = GetProcAddress("glDebugMessageCallback", true);
*(void**)&(gl_GetProgramInfoLog) = GetProcAddress("glGetProgramInfoLog");
*(void**)&(gl_GetProgramiv) = GetProcAddress("glGetProgramiv");
*(void**)&(gl_GetShaderiv) = GetProcAddress("glGetShaderiv");