summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2019-05-17 13:04:04 -0400
committerGravatar GitHub2019-05-17 13:04:04 -0400
commit865025f612599e2560213d2326b2b8f5abe8b9e8 (patch)
treee5afcab6bb3041e4c203472a4e2a9393845e3520 /src
parentMerge pull request #2479 from ReinUsesLisp/qt-shadow (diff)
parentyuzu_cmd: Use OpenGL compat when asked in the settings (diff)
downloadyuzu-865025f612599e2560213d2326b2b8f5abe8b9e8.tar.gz
yuzu-865025f612599e2560213d2326b2b8f5abe8b9e8.tar.xz
yuzu-865025f612599e2560213d2326b2b8f5abe8b9e8.zip
Merge pull request #2478 from ReinUsesLisp/sdl2-compat
yuzu_cmd: Use OpenGL compat when asked in the settings
Diffstat (limited to 'src')
-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) {
176 176
177 SDL_SetMainReady(); 177 SDL_SetMainReady();
178 178
179 const SDL_GLprofile profile = Settings::values.use_compatibility_profile
180 ? SDL_GL_CONTEXT_PROFILE_COMPATIBILITY
181 : SDL_GL_CONTEXT_PROFILE_CORE;
182
179 SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 4); 183 SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 4);
180 SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 3); 184 SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 3);
181 SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE); 185 SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, profile);
182 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); 186 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
183 SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8); 187 SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8);
184 SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8); 188 SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8);