mirror of https://github.com/PCSX2/pcsx2.git
gsdx-ogl: glDebugMessageCallback is optional
Not even used in release build
This commit is contained in:
parent
9d69ff1f91
commit
9fa473a57d
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue