summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-06-08 16:16:41 +0200
committerGitHub <noreply@github.com>2020-06-08 16:16:41 +0200
commit98d2461529af62251b4a6e303a4012fc567e6ea3 (patch)
tree6c861b5c8463af8625f1165ca9d41931e2f923a2 /src
parentMerge pull request #4034 from ReinUsesLisp/storage-texels (diff)
parentrenderer_opengl: Only enable DEBUG_OUTPUT when graphics debugging is enabled (diff)
downloadyuzu-98d2461529af62251b4a6e303a4012fc567e6ea3.tar
yuzu-98d2461529af62251b4a6e303a4012fc567e6ea3.tar.gz
yuzu-98d2461529af62251b4a6e303a4012fc567e6ea3.tar.bz2
yuzu-98d2461529af62251b4a6e303a4012fc567e6ea3.tar.lz
yuzu-98d2461529af62251b4a6e303a4012fc567e6ea3.tar.xz
yuzu-98d2461529af62251b4a6e303a4012fc567e6ea3.tar.zst
yuzu-98d2461529af62251b4a6e303a4012fc567e6ea3.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/renderer_opengl.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp
index e7952924a..6214fcbc3 100644
--- a/src/video_core/renderer_opengl/renderer_opengl.cpp
+++ b/src/video_core/renderer_opengl/renderer_opengl.cpp
@@ -751,11 +751,9 @@ void RendererOpenGL::RenderScreenshot() {
}
bool RendererOpenGL::Init() {
- if (GLAD_GL_KHR_debug) {
+ if (Settings::values.renderer_debug && GLAD_GL_KHR_debug) {
glEnable(GL_DEBUG_OUTPUT);
- if (Settings::values.renderer_debug) {
- glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS);
- }
+ glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS);
glDebugMessageCallback(DebugHandler, nullptr);
}