summaryrefslogtreecommitdiffstats
path: root/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-05-17 09:24:04 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-05-17 09:25:26 +0200
commit69265e450446aeba405c4aad83233854b57a994f (patch)
tree6d2d6cc59d2d86650d4f60cad85935f6c4a1c68f /src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
parentMerge pull request #2462 from lioncash/video-mm (diff)
downloadyuzu-69265e450446aeba405c4aad83233854b57a994f.tar
yuzu-69265e450446aeba405c4aad83233854b57a994f.tar.gz
yuzu-69265e450446aeba405c4aad83233854b57a994f.tar.bz2
yuzu-69265e450446aeba405c4aad83233854b57a994f.tar.lz
yuzu-69265e450446aeba405c4aad83233854b57a994f.tar.xz
yuzu-69265e450446aeba405c4aad83233854b57a994f.tar.zst
yuzu-69265e450446aeba405c4aad83233854b57a994f.zip
Diffstat (limited to '')
-rw-r--r--src/yuzu_cmd/emu_window/emu_window_sdl2.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
index 68a176032..8f104062d 100644
--- a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
+++ b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
@@ -176,9 +176,13 @@ EmuWindow_SDL2::EmuWindow_SDL2(bool fullscreen) {
SDL_SetMainReady();
+ const SDL_GLprofile profile = Settings::values.use_compatibility_profile
+ ? SDL_GL_CONTEXT_PROFILE_COMPATIBILITY
+ : SDL_GL_CONTEXT_PROFILE_CORE;
+
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_CORE);
+ SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, profile);
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8);
SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8);