summaryrefslogtreecommitdiff
path: root/src/render/graphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/graphics.cpp')
-rw-r--r--src/render/graphics.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/render/graphics.cpp b/src/render/graphics.cpp
index 921e8334f..17f8a6d2e 100644
--- a/src/render/graphics.cpp
+++ b/src/render/graphics.cpp
@@ -65,16 +65,20 @@
#include "render/graphics.h"
-#include "main.h"
-
+#ifdef USE_OPENGL
#include "configuration.h"
#include "graphicsmanager.h"
+#endif
#include "logger.h"
+#if defined(USE_OPENGL) && defined(USE_X11)
#include "render/mglxinit.h"
+#endif
#include "resources/imagehelper.h"
+#ifdef USE_OPENGL
#include "resources/openglimagehelper.h"
+#endif
#ifdef USE_OPENGL
#ifdef __APPLE__
@@ -261,7 +265,7 @@ bool Graphics::setOpenGLMode()
return false;
}
-#if defined(USE_OPENGL) && defined(USE_X11)
+#if defined(USE_X11)
Glx::initFunctions();
#endif
#ifdef USE_SDL2