summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-05-31 23:04:27 +0200
committerGitHub <noreply@github.com>2020-05-31 23:04:27 +0200
commitedbf3144d20e5e96db0f54a96b5191156d7113a0 (patch)
tree5cd4ae8bb9da3acebd3418c998ad75c10ba971dc /src/video_core
parentMerge pull request #3999 from ReinUsesLisp/opt-tex-cache (diff)
parentOpenGL: Enable Debug Context and Synchronous debugging when graphics debugging is enabled. (diff)
downloadyuzu-edbf3144d20e5e96db0f54a96b5191156d7113a0.tar
yuzu-edbf3144d20e5e96db0f54a96b5191156d7113a0.tar.gz
yuzu-edbf3144d20e5e96db0f54a96b5191156d7113a0.tar.bz2
yuzu-edbf3144d20e5e96db0f54a96b5191156d7113a0.tar.lz
yuzu-edbf3144d20e5e96db0f54a96b5191156d7113a0.tar.xz
yuzu-edbf3144d20e5e96db0f54a96b5191156d7113a0.tar.zst
yuzu-edbf3144d20e5e96db0f54a96b5191156d7113a0.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_opengl/renderer_opengl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp
index 6b489e6db..e7952924a 100644
--- a/src/video_core/renderer_opengl/renderer_opengl.cpp
+++ b/src/video_core/renderer_opengl/renderer_opengl.cpp
@@ -753,6 +753,9 @@ void RendererOpenGL::RenderScreenshot() {
bool RendererOpenGL::Init() {
if (GLAD_GL_KHR_debug) {
glEnable(GL_DEBUG_OUTPUT);
+ if (Settings::values.renderer_debug) {
+ glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS);
+ }
glDebugMessageCallback(DebugHandler, nullptr);
}