Permalink
Browse files

gsdx-ogl: Enable function pointer support logs only when "debug_openg…

…l" is enabled in the ini.

They are mostly for debugging driver issues so regular users don't
actually need to see them most of the time.
  • Loading branch information...
lightningterror committed Feb 9, 2019
1 parent 6e49139 commit cc6ac657f8c062b2b25ef0f5ac060df1aaf1dd18
Showing with 6 additions and 2 deletions.
  1. +3 −1 plugins/GSdx/Window/GSWndOGL.cpp
  2. +3 −1 plugins/GSdx/Window/GSWndWGL.cpp
@@ -186,7 +186,9 @@ void* GSWndOGL::GetProcAddress(const char* name, bool opt)
{
void* ptr = (void*)glXGetProcAddress((const GLubyte*)name);
if (ptr == NULL) {
fprintf(stderr, "Failed to find %s\n", name);
if (theApp.GetConfigB("debug_opengl"))
fprintf(stderr, "Failed to find %s\n", name);

if (!opt)
throw GSDXRecoverableError();
}
@@ -327,7 +327,9 @@ void* GSWndWGL::GetProcAddress(const char* name, bool opt)
}
#endif
if (ptr == NULL) {
fprintf(stderr, "Failed to find %s\n", name);
if (theApp.GetConfigB("debug_opengl"))
fprintf(stderr, "Failed to find %s\n", name);

if (!opt)
throw GSDXRecoverableError();
}

0 comments on commit cc6ac65

Please sign in to comment.