mirror of
https://github.com/citra-emu/citra.git
synced 2024-12-27 06:10:06 +00:00
OpenGL: Check for threading support
We need this.
This commit is contained in:
parent
71d4a85957
commit
06c426883f
@ -667,6 +667,12 @@ void GRenderWindow::OnMinimalClientAreaChangeRequest(std::pair<u32, u32> minimal
|
|||||||
|
|
||||||
bool GRenderWindow::InitializeOpenGL() {
|
bool GRenderWindow::InitializeOpenGL() {
|
||||||
#ifdef HAS_OPENGL
|
#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,
|
// TODO: One of these flags might be interesting: WA_OpaquePaintEvent, WA_NoBackground,
|
||||||
// WA_DontShowOnScreen, WA_DeleteOnClose
|
// WA_DontShowOnScreen, WA_DeleteOnClose
|
||||||
auto child = new OpenGLRenderWidget(this, is_secondary);
|
auto child = new OpenGLRenderWidget(this, is_secondary);
|
||||||
|
Loading…
Reference in New Issue
Block a user