diff options
| author | 2022-12-13 14:39:03 -0500 | |
|---|---|---|
| committer | 2022-12-13 15:01:51 -0500 | |
| commit | 09e3029c1118616394e5e9c45dfcdd4adcdf86ad (patch) | |
| tree | 652f0490e20ecd253171c43cc7a9271712793be5 /src/yuzu_cmd | |
| parent | OpenGL: Check for threading support (diff) | |
| download | yuzu-09e3029c1118616394e5e9c45dfcdd4adcdf86ad.tar.gz yuzu-09e3029c1118616394e5e9c45dfcdd4adcdf86ad.tar.xz yuzu-09e3029c1118616394e5e9c45dfcdd4adcdf86ad.zip | |
gl_device: Use a more robust way to use strict context mode
Instead of checking a environment variable which may not actually
exist or is just wrong, ask QT if it's running on the wayland
platform.
Diffstat (limited to 'src/yuzu_cmd')
| -rw-r--r-- | src/yuzu_cmd/emu_window/emu_window_sdl2_gl.cpp | 2 |
1 files changed, 2 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 9b660c13c..ddcb048d6 100644 --- a/src/yuzu_cmd/emu_window/emu_window_sdl2_gl.cpp +++ b/src/yuzu_cmd/emu_window/emu_window_sdl2_gl.cpp | |||
| @@ -104,6 +104,8 @@ EmuWindow_SDL2_GL::EmuWindow_SDL2_GL(InputCommon::InputSubsystem* input_subsyste | |||
| 104 | exit(1); | 104 | exit(1); |
| 105 | } | 105 | } |
| 106 | 106 | ||
| 107 | strict_context_required = strcmp(SDL_GetCurrentVideoDriver(), "wayland") == 0; | ||
| 108 | |||
| 107 | SetWindowIcon(); | 109 | SetWindowIcon(); |
| 108 | 110 | ||
| 109 | if (fullscreen) { | 111 | if (fullscreen) { |