summaryrefslogtreecommitdiff
path: root/platform/qt/src/headless_backend_qt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform/qt/src/headless_backend_qt.cpp')
-rw-r--r--platform/qt/src/headless_backend_qt.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/platform/qt/src/headless_backend_qt.cpp b/platform/qt/src/headless_backend_qt.cpp
index ad3fa42290..3702fdf14a 100644
--- a/platform/qt/src/headless_backend_qt.cpp
+++ b/platform/qt/src/headless_backend_qt.cpp
@@ -1,12 +1,7 @@
#include <mbgl/gl/headless_backend.hpp>
#include <QGLWidget>
-
-#if QT_VERSION >= 0x050000
#include <QOpenGLContext>
-#else
-#include <QGLContext>
-#endif
#include <cassert>
@@ -17,13 +12,8 @@ public:
~QtBackendImpl() final = default;
gl::ProcAddress getExtensionFunctionPointer(const char* name) final {
-#if QT_VERSION >= 0x050000
QOpenGLContext* thisContext = QOpenGLContext::currentContext();
return thisContext->getProcAddress(name);
-#else
- const QGLContext* thisContext = QGLContext::currentContext();
- return reinterpret_cast<gl::ProcAddress>(thisContext->getProcAddress(name));
-#endif
}
void activateContext() final {