From cc6ac657f8c062b2b25ef0f5ac060df1aaf1dd18 Mon Sep 17 00:00:00 2001 From: lightningterror Date: Sat, 9 Feb 2019 11:10:00 +0100 Subject: [PATCH] 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. --- plugins/GSdx/Window/GSWndOGL.cpp | 4 +++- plugins/GSdx/Window/GSWndWGL.cpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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(); }