diff options
author | bunnei <bunneidev@gmail.com> | 2020-05-31 23:04:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-31 23:04:27 +0200 |
commit | edbf3144d20e5e96db0f54a96b5191156d7113a0 (patch) | |
tree | 5cd4ae8bb9da3acebd3418c998ad75c10ba971dc /src/yuzu_cmd | |
parent | Merge pull request #3999 from ReinUsesLisp/opt-tex-cache (diff) | |
parent | OpenGL: Enable Debug Context and Synchronous debugging when graphics debugging is enabled. (diff) | |
download | yuzu-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/yuzu_cmd')
-rw-r--r-- | src/yuzu_cmd/emu_window/emu_window_sdl2_gl.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2_gl.cpp b/src/yuzu_cmd/emu_window/emu_window_sdl2_gl.cpp index 411e7e647..09cc0a3b5 100644 --- a/src/yuzu_cmd/emu_window/emu_window_sdl2_gl.cpp +++ b/src/yuzu_cmd/emu_window/emu_window_sdl2_gl.cpp @@ -98,6 +98,9 @@ EmuWindow_SDL2_GL::EmuWindow_SDL2_GL(Core::System& system, bool fullscreen) SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8); SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 0); SDL_GL_SetAttribute(SDL_GL_SHARE_WITH_CURRENT_CONTEXT, 1); + if (Settings::values.renderer_debug) { + SDL_GL_SetAttribute(SDL_GL_CONTEXT_FLAGS, SDL_GL_CONTEXT_DEBUG_FLAG); + } SDL_GL_SetSwapInterval(0); std::string window_title = fmt::format("yuzu {} | {}-{}", Common::g_build_fullname, |