summaryrefslogtreecommitdiff
path: root/src/core/frontend/emu_window.h
diff options
context:
space:
mode:
authorGravatar Alexander Orzechowski2022-12-13 14:39:03 -0500
committerGravatar Alexander Orzechowski2022-12-13 15:01:51 -0500
commit09e3029c1118616394e5e9c45dfcdd4adcdf86ad (patch)
tree652f0490e20ecd253171c43cc7a9271712793be5 /src/core/frontend/emu_window.h
parentOpenGL: Check for threading support (diff)
downloadyuzu-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/core/frontend/emu_window.h')
-rw-r--r--src/core/frontend/emu_window.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/frontend/emu_window.h b/src/core/frontend/emu_window.h
index 95363b645..cf85ba29e 100644
--- a/src/core/frontend/emu_window.h
+++ b/src/core/frontend/emu_window.h
@@ -131,6 +131,10 @@ public:
131 return active_config; 131 return active_config;
132 } 132 }
133 133
134 bool StrictContextRequired() const {
135 return strict_context_required;
136 }
137
134 /** 138 /**
135 * Requests the internal configuration to be replaced by the specified argument at some point in 139 * Requests the internal configuration to be replaced by the specified argument at some point in
136 * the future. 140 * the future.
@@ -207,6 +211,8 @@ protected:
207 211
208 WindowSystemInfo window_info; 212 WindowSystemInfo window_info;
209 213
214 bool strict_context_required = false;
215
210private: 216private:
211 /** 217 /**
212 * Handler called when the minimal client area was requested to be changed via SetConfig. 218 * Handler called when the minimal client area was requested to be changed via SetConfig.