diff options
author | Rodrigo Locatti <reinuseslisp@airmail.cc> | 2020-09-21 02:21:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-21 02:21:32 +0200 |
commit | a2eb44db825a892cc2863bd1f5d0352c273ff0f0 (patch) | |
tree | 3e75441609f97c8a6ad01e70461ecb218c51d086 /src/yuzu_cmd/emu_window/emu_window_sdl2_gl.cpp | |
parent | Merge pull request #4683 from Morph1984/NpadHandheldActivationMode-impl (diff) | |
parent | renderer_opengl: Remove emulated mailbox presentation (diff) | |
download | yuzu-a2eb44db825a892cc2863bd1f5d0352c273ff0f0.tar yuzu-a2eb44db825a892cc2863bd1f5d0352c273ff0f0.tar.gz yuzu-a2eb44db825a892cc2863bd1f5d0352c273ff0f0.tar.bz2 yuzu-a2eb44db825a892cc2863bd1f5d0352c273ff0f0.tar.lz yuzu-a2eb44db825a892cc2863bd1f5d0352c273ff0f0.tar.xz yuzu-a2eb44db825a892cc2863bd1f5d0352c273ff0f0.tar.zst yuzu-a2eb44db825a892cc2863bd1f5d0352c273ff0f0.zip |
Diffstat (limited to 'src/yuzu_cmd/emu_window/emu_window_sdl2_gl.cpp')
-rw-r--r-- | src/yuzu_cmd/emu_window/emu_window_sdl2_gl.cpp | 15 |
1 files changed, 2 insertions, 13 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 881b67a76..5f35233b5 100644 --- a/src/yuzu_cmd/emu_window/emu_window_sdl2_gl.cpp +++ b/src/yuzu_cmd/emu_window/emu_window_sdl2_gl.cpp @@ -87,9 +87,8 @@ bool EmuWindow_SDL2_GL::SupportsRequiredGLExtensions() { return unsupported_ext.empty(); } -EmuWindow_SDL2_GL::EmuWindow_SDL2_GL(Core::System& system, bool fullscreen, - InputCommon::InputSubsystem* input_subsystem) - : EmuWindow_SDL2{system, fullscreen, input_subsystem} { +EmuWindow_SDL2_GL::EmuWindow_SDL2_GL(InputCommon::InputSubsystem* input_subsystem, bool fullscreen) + : EmuWindow_SDL2{input_subsystem} { SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 4); SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 3); SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_COMPATIBILITY); @@ -163,13 +162,3 @@ EmuWindow_SDL2_GL::~EmuWindow_SDL2_GL() { std::unique_ptr<Core::Frontend::GraphicsContext> EmuWindow_SDL2_GL::CreateSharedContext() const { return std::make_unique<SDLGLContext>(); } - -void EmuWindow_SDL2_GL::Present() { - SDL_GL_MakeCurrent(render_window, window_context); - SDL_GL_SetSwapInterval(Settings::values.use_vsync.GetValue() ? 1 : 0); - while (IsOpen()) { - system.Renderer().TryPresent(100); - SDL_GL_SwapWindow(render_window); - } - SDL_GL_MakeCurrent(render_window, nullptr); -} |