diff options
Diffstat (limited to 'platform/qt/src/qmapboxgl_renderer_backend.cpp')
-rw-r--r-- | platform/qt/src/qmapboxgl_renderer_backend.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/platform/qt/src/qmapboxgl_renderer_backend.cpp b/platform/qt/src/qmapboxgl_renderer_backend.cpp index 917741f5ce..c6de7c6d80 100644 --- a/platform/qt/src/qmapboxgl_renderer_backend.cpp +++ b/platform/qt/src/qmapboxgl_renderer_backend.cpp @@ -1,12 +1,7 @@ #include "qmapboxgl_renderer_backend.hpp" -#include <QtGlobal> - -#if QT_VERSION >= 0x050000 #include <QOpenGLContext> -#else -#include <QGLContext> -#endif +#include <QtGlobal> void QMapboxGLRendererBackend::updateAssumedState() { @@ -39,11 +34,6 @@ void QMapboxGLRendererBackend::updateFramebuffer(quint32 fbo, const mbgl::Size & */ mbgl::gl::ProcAddress QMapboxGLRendererBackend::getExtensionFunctionPointer(const char* name) { -#if QT_VERSION >= 0x050000 QOpenGLContext* thisContext = QOpenGLContext::currentContext(); return thisContext->getProcAddress(name); -#else - const QGLContext* thisContext = QGLContext::currentContext(); - return reinterpret_cast<mbgl::gl::ProcAddress>(thisContext->getProcAddress(name)); -#endif } |