summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Orzechowski <alex@ozal.ski>2022-12-13 19:17:44 +0100
committerAlexander Orzechowski <alex@ozal.ski>2022-12-13 19:23:35 +0100
commit2221afaf265c15d0d3a2e551f172bed6567fc11a (patch)
tree2f48b9a76d25f5e176707afbd1286e4c400d4b29 /src
parentwayland: Always use exclusive fullscreen (diff)
downloadyuzu-2221afaf265c15d0d3a2e551f172bed6567fc11a.tar
yuzu-2221afaf265c15d0d3a2e551f172bed6567fc11a.tar.gz
yuzu-2221afaf265c15d0d3a2e551f172bed6567fc11a.tar.bz2
yuzu-2221afaf265c15d0d3a2e551f172bed6567fc11a.tar.lz
yuzu-2221afaf265c15d0d3a2e551f172bed6567fc11a.tar.xz
yuzu-2221afaf265c15d0d3a2e551f172bed6567fc11a.tar.zst
yuzu-2221afaf265c15d0d3a2e551f172bed6567fc11a.zip
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/bootmanager.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp
index d2103e86f..0ba7fff7a 100644
--- a/src/yuzu/bootmanager.cpp
+++ b/src/yuzu/bootmanager.cpp
@@ -952,6 +952,12 @@ void GRenderWindow::OnMinimalClientAreaChangeRequest(std::pair<u32, u32> minimal
bool GRenderWindow::InitializeOpenGL() {
#ifdef HAS_OPENGL
+ if (!QOpenGLContext::supportsThreadedOpenGL()) {
+ QMessageBox::warning(this, tr("OpenGL not available!"),
+ tr("OpenGL shared contexts are not supported."));
+ return false;
+ }
+
// TODO: One of these flags might be interesting: WA_OpaquePaintEvent, WA_NoBackground,
// WA_DontShowOnScreen, WA_DeleteOnClose
auto child = new OpenGLRenderWidget(this);