summaryrefslogtreecommitdiffstats
path: root/src/citra_qt/main.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2016-05-07 06:33:06 +0200
committerbunnei <bunneidev@gmail.com>2016-05-07 06:33:06 +0200
commit8043a35cf948922a06f18d3978fc40617f313cb7 (patch)
treed77167f5b7fba155f73fd68af7e21f78b4f00de7 /src/citra_qt/main.cpp
parentMerge pull request #1764 from wwylele/how-can-i-find-this-if-i-have-only-decrypted-rom (diff)
parentFrontends, VideoCore: Move glad initialisation to the frontend (diff)
downloadyuzu-8043a35cf948922a06f18d3978fc40617f313cb7.tar
yuzu-8043a35cf948922a06f18d3978fc40617f313cb7.tar.gz
yuzu-8043a35cf948922a06f18d3978fc40617f313cb7.tar.bz2
yuzu-8043a35cf948922a06f18d3978fc40617f313cb7.tar.lz
yuzu-8043a35cf948922a06f18d3978fc40617f313cb7.tar.xz
yuzu-8043a35cf948922a06f18d3978fc40617f313cb7.tar.zst
yuzu-8043a35cf948922a06f18d3978fc40617f313cb7.zip
Diffstat (limited to 'src/citra_qt/main.cpp')
-rw-r--r--src/citra_qt/main.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp
index f1ab29755..a85c94a4b 100644
--- a/src/citra_qt/main.cpp
+++ b/src/citra_qt/main.cpp
@@ -6,6 +6,9 @@
#include <memory>
#include <thread>
+#include <glad/glad.h>
+
+#define QT_NO_OPENGL
#include <QDesktopWidget>
#include <QtGui>
#include <QFileDialog>
@@ -240,6 +243,14 @@ bool GMainWindow::InitializeSystem() {
if (emu_thread != nullptr)
ShutdownGame();
+ render_window->MakeCurrent();
+ if (!gladLoadGL()) {
+ QMessageBox::critical(this, tr("Error while starting Citra!"),
+ tr("Failed to initialize the video core!\n\n"
+ "Please ensure that your GPU supports OpenGL 3.3 and that you have the latest graphics driver."));
+ return false;
+ }
+
// Initialize the core emulation
System::Result system_result = System::Init(render_window);
if (System::Result::Success != system_result) {