diff options
| author | 2022-12-13 13:17:44 -0500 | |
|---|---|---|
| committer | 2022-12-13 13:23:35 -0500 | |
| commit | 2221afaf265c15d0d3a2e551f172bed6567fc11a (patch) | |
| tree | 2f48b9a76d25f5e176707afbd1286e4c400d4b29 | |
| parent | wayland: Always use exclusive fullscreen (diff) | |
| download | yuzu-2221afaf265c15d0d3a2e551f172bed6567fc11a.tar.gz yuzu-2221afaf265c15d0d3a2e551f172bed6567fc11a.tar.xz yuzu-2221afaf265c15d0d3a2e551f172bed6567fc11a.zip | |
OpenGL: Check for threading support
We need this.
| -rw-r--r-- | src/yuzu/bootmanager.cpp | 6 |
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 | |||
| 952 | 952 | ||
| 953 | bool GRenderWindow::InitializeOpenGL() { | 953 | bool GRenderWindow::InitializeOpenGL() { |
| 954 | #ifdef HAS_OPENGL | 954 | #ifdef HAS_OPENGL |
| 955 | if (!QOpenGLContext::supportsThreadedOpenGL()) { | ||
| 956 | QMessageBox::warning(this, tr("OpenGL not available!"), | ||
| 957 | tr("OpenGL shared contexts are not supported.")); | ||
| 958 | return false; | ||
| 959 | } | ||
| 960 | |||
| 955 | // TODO: One of these flags might be interesting: WA_OpaquePaintEvent, WA_NoBackground, | 961 | // TODO: One of these flags might be interesting: WA_OpaquePaintEvent, WA_NoBackground, |
| 956 | // WA_DontShowOnScreen, WA_DeleteOnClose | 962 | // WA_DontShowOnScreen, WA_DeleteOnClose |
| 957 | auto child = new OpenGLRenderWidget(this); | 963 | auto child = new OpenGLRenderWidget(this); |