yuzu-emu
/
yuzu
Archived
1
0
Fork 0

renderer_opengl: Only enable DEBUG_OUTPUT when graphics debugging is enabled

Avoids logging when it's not relevant. This can potentially reduce
driver's internal thread overhead.
This commit is contained in:
ReinUsesLisp 2020-06-05 21:18:22 -03:00
parent 98671b4cfe
commit 354fbe701e
1 changed files with 2 additions and 4 deletions

View File

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