1
0
mirror of https://git.suyu.dev/suyu/suyu synced 2025-09-10 08:16:33 -05:00

Merge pull request #3958 from FernandoS27/gl-debug

OpenGL: Enable Debug Context and Synchronous debugging when graphics debugging is enabled
This commit is contained in:
bunnei
2020-05-31 17:04:27 -04:00
committed by GitHub
3 changed files with 9 additions and 0 deletions

View File

@@ -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);
}