diff --git a/plugins/GSdx/Window/GSWndOGL.cpp b/plugins/GSdx/Window/GSWndOGL.cpp index 4af94ec8f2..39d408e286 100644 --- a/plugins/GSdx/Window/GSWndOGL.cpp +++ b/plugins/GSdx/Window/GSWndOGL.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(); } diff --git a/plugins/GSdx/Window/GSWndWGL.cpp b/plugins/GSdx/Window/GSWndWGL.cpp index 7a1f1aebeb..4a9ff03bca 100644 --- a/plugins/GSdx/Window/GSWndWGL.cpp +++ b/plugins/GSdx/Window/GSWndWGL.cpp @@ -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(); }