diff options
| author | bunnei <bunneidev@gmail.com> | 2020-05-31 17:04:27 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-31 17:04:27 -0400 |
| commit | 8e9a359db5ff7d9f4873fb69c8bdf790572bb07d (patch) | |
| tree | 5cd4ae8bb9da3acebd3418c998ad75c10ba971dc /src/yuzu/bootmanager.cpp | |
| parent | 2f9185afcd52007dc2b50ca66807869148c26cf5 (diff) | |
| parent | b9eff4d004db376787f16f1debc69285c22c613a (diff) | |
Merge pull request #3958 from FernandoS27/gl-debug
OpenGL: Enable Debug Context and Synchronous debugging when graphics debugging is enabled
Diffstat (limited to 'src/yuzu/bootmanager.cpp')
| -rw-r--r-- | src/yuzu/bootmanager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp index 1adf8932b3..1f5e43043c 100644 --- a/src/yuzu/bootmanager.cpp +++ b/src/yuzu/bootmanager.cpp @@ -106,6 +106,9 @@ public: format.setVersion(4, 3); format.setProfile(QSurfaceFormat::CompatibilityProfile); format.setOption(QSurfaceFormat::FormatOption::DeprecatedFunctions); + if (Settings::values.renderer_debug) { + format.setOption(QSurfaceFormat::FormatOption::DebugContext); + } // TODO: expose a setting for buffer value (ie default/single/double/triple) format.setSwapBehavior(QSurfaceFormat::DefaultSwapBehavior); format.setSwapInterval(0); |
