gsdx-ogl: Enable function pointer support logs only when "debug_opengl" 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.
This commit is contained in:
lightningterror 2019-02-09 11:10:00 +01:00
parent 6e49139d0e
commit cc6ac657f8
2 changed files with 6 additions and 2 deletions

View File

@ -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();
}

View File

@ -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();
}