summaryrefslogtreecommitdiff
path: root/src/utils/sdlhelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/sdlhelper.cpp')
-rw-r--r--src/utils/sdlhelper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/sdlhelper.cpp b/src/utils/sdlhelper.cpp
index bdb6dbd4e..2e0b51e54 100644
--- a/src/utils/sdlhelper.cpp
+++ b/src/utils/sdlhelper.cpp
@@ -26,9 +26,9 @@
#include "utils/stringutils.h"
-#ifdef USE_X11
+#if defined(USE_X11) && defined(USE_OPENGL)
#include "utils/glxhelper.h"
-#endif // USE_X11
+#endif // defined(USE_X11) && defined(USE_OPENGL)
#include <SDL_syswm.h>
#include <SDL_video.h>