summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-06-06 02:18:22 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-06-06 02:21:12 +0200
commit354fbe701e99c1b9cd0bb5463e9a15ca374c12d7 (patch)
tree66e9cc438cf4009ca6127ac1cffc5ecb42c0275b /src/video_core
parentMerge pull request #4013 from ReinUsesLisp/skip-no-xfb (diff)
downloadyuzu-354fbe701e99c1b9cd0bb5463e9a15ca374c12d7.tar
yuzu-354fbe701e99c1b9cd0bb5463e9a15ca374c12d7.tar.gz
yuzu-354fbe701e99c1b9cd0bb5463e9a15ca374c12d7.tar.bz2
yuzu-354fbe701e99c1b9cd0bb5463e9a15ca374c12d7.tar.lz
yuzu-354fbe701e99c1b9cd0bb5463e9a15ca374c12d7.tar.xz
yuzu-354fbe701e99c1b9cd0bb5463e9a15ca374c12d7.tar.zst
yuzu-354fbe701e99c1b9cd0bb5463e9a15ca374c12d7.zip
Diffstat (limited to 'src/video_core')
-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);
}