diff options
author | Liam <byteslice@airmail.cc> | 2022-12-13 18:30:15 +0100 |
---|---|---|
committer | Alexander Orzechowski <alex@ozal.ski> | 2022-12-13 19:23:23 +0100 |
commit | d5f53da79d944869eb88416494ecf10a47eee90d (patch) | |
tree | 8b2bc2084d711ba2196d2e8121216eac25e982cb /src/video_core/renderer_opengl/gl_device.cpp | |
parent | Merge pull request #9425 from german77/german_unlimited (diff) | |
download | yuzu-d5f53da79d944869eb88416494ecf10a47eee90d.tar yuzu-d5f53da79d944869eb88416494ecf10a47eee90d.tar.gz yuzu-d5f53da79d944869eb88416494ecf10a47eee90d.tar.bz2 yuzu-d5f53da79d944869eb88416494ecf10a47eee90d.tar.lz yuzu-d5f53da79d944869eb88416494ecf10a47eee90d.tar.xz yuzu-d5f53da79d944869eb88416494ecf10a47eee90d.tar.zst yuzu-d5f53da79d944869eb88416494ecf10a47eee90d.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_device.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_device.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/gl_device.cpp b/src/video_core/renderer_opengl/gl_device.cpp index e2e3dac34..4c5020def 100644 --- a/src/video_core/renderer_opengl/gl_device.cpp +++ b/src/video_core/renderer_opengl/gl_device.cpp @@ -126,9 +126,11 @@ Device::Device() { const bool is_intel = vendor_name == "Intel"; #ifdef __unix__ - const bool is_linux = true; + constexpr bool is_linux = true; + const bool is_wayland = strcasecmp(getenv("XDG_SESSION_TYPE"), "wayland") == 0; #else - const bool is_linux = false; + constexpr bool is_linux = false; + constexpr bool is_wayland = false; #endif bool disable_fast_buffer_sub_data = false; @@ -194,9 +196,11 @@ Device::Device() { } // Blocks AMD and Intel OpenGL drivers on Windows from using asynchronous shader compilation. + // Blocks EGL on Wayland from using asynchronous shader compilation. use_asynchronous_shaders = Settings::values.use_asynchronous_shaders.GetValue() && - !(is_amd || (is_intel && !is_linux)); + !(is_amd || (is_intel && !is_linux)) && !is_wayland; use_driver_cache = is_nvidia; + strict_context_required = is_wayland; LOG_INFO(Render_OpenGL, "Renderer_VariableAOFFI: {}", has_variable_aoffi); LOG_INFO(Render_OpenGL, "Renderer_ComponentIndexingBug: {}", has_component_indexing_bug); |