aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/bootmanager.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-04-24 22:54:27 -0400
committerGitHub <noreply@github.com>2019-04-24 22:54:27 -0400
commit94db649205baadd0f325be5a56766850fc7421c7 (patch)
treee61fba516c66d2858d8846b10e030163619b243b /src/yuzu/bootmanager.cpp
parentee2252b6e13237f9c80a40379a18455832d01e33 (diff)
parent788497fd9d41bbfb82a1ac6816bee805a38e60cc (diff)
Merge pull request #2424 from FernandoS27/compat
Allow picking a Compatibility Profile for OpenGL.
Diffstat (limited to 'src/yuzu/bootmanager.cpp')
-rw-r--r--src/yuzu/bootmanager.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp
index 7eed9fcf3..5c98636c5 100644
--- a/src/yuzu/bootmanager.cpp
+++ b/src/yuzu/bootmanager.cpp
@@ -377,7 +377,11 @@ void GRenderWindow::InitRenderTarget() {
// WA_DontShowOnScreen, WA_DeleteOnClose
QSurfaceFormat fmt;
fmt.setVersion(4, 3);
- fmt.setProfile(QSurfaceFormat::CoreProfile);
+ if (Settings::values.use_compatibility_profile) {
+ fmt.setProfile(QSurfaceFormat::CompatibilityProfile);
+ } else {
+ fmt.setProfile(QSurfaceFormat::CoreProfile);
+ }
// TODO: expose a setting for buffer value (ie default/single/double/triple)
fmt.setSwapBehavior(QSurfaceFormat::DefaultSwapBehavior);
shared_context = std::make_unique<QOpenGLContext>();