aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/qt_sdl
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/qt_sdl')
-rw-r--r--src/frontend/qt_sdl/main.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp
index be718ab..527a507 100644
--- a/src/frontend/qt_sdl/main.cpp
+++ b/src/frontend/qt_sdl/main.cpp
@@ -44,6 +44,10 @@
#include <SDL2/SDL.h>
+#ifdef OGLRENDERER_ENABLED
+#include "OpenGLSupport.h"
+#endif
+
#include "main.h"
#include "Input.h"
#include "CheatsDialog.h"
@@ -62,9 +66,6 @@
#include "NDS.h"
#include "GBACart.h"
-#ifdef OGLRENDERER_ENABLED
-#include "OpenGLSupport.h"
-#endif
#include "GPU.h"
#include "SPU.h"
#include "Wifi.h"
@@ -357,7 +358,7 @@ void EmuThread::run()
if (hasOGL)
{
oglContext->makeCurrent(oglSurface);
- videoRenderer = OpenGL::Init() ? Config::_3DRenderer : 0;
+ videoRenderer = Config::_3DRenderer;
}
else
#endif
@@ -423,7 +424,7 @@ void EmuThread::run()
if (hasOGL)
{
oglContext->makeCurrent(oglSurface);
- videoRenderer = OpenGL::Init() ? Config::_3DRenderer : 0;
+ videoRenderer = Config::_3DRenderer;
}
else
#endif