summaryrefslogtreecommitdiffstats
path: root/src/plugins/renderers/opengl/textures/gltexture.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/renderers/opengl/textures/gltexture.cpp')
-rw-r--r--src/plugins/renderers/opengl/textures/gltexture.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/plugins/renderers/opengl/textures/gltexture.cpp b/src/plugins/renderers/opengl/textures/gltexture.cpp
index f6bd38fc3..7f358b0e3 100644
--- a/src/plugins/renderers/opengl/textures/gltexture.cpp
+++ b/src/plugins/renderers/opengl/textures/gltexture.cpp
@@ -9,9 +9,7 @@
#include <private/qopengltexturehelper_p.h>
#include <QDebug>
#include <QOpenGLFunctions>
-#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#include <QtOpenGL/QOpenGLVersionFunctionsFactory>
-#endif
#include <QOpenGLTexture>
#include <QOpenGLPixelTransferOptions>
#include <Qt3DRender/qtexture.h>
@@ -30,8 +28,6 @@
QT_BEGIN_NAMESPACE
-using namespace Qt3DCore;
-
namespace Qt3DRender {
namespace Render {
namespace OpenGL {
@@ -656,11 +652,7 @@ void GLTexture::introspectPropertiesFromSharedTextureId()
if (ctxGLVersion.first > 4 || (ctxGLVersion.first == 4 && ctxGLVersion.second >= 5)) {
// Only for GL 4.5+
#ifdef GL_TEXTURE_TARGET
-#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
QOpenGLFunctions_4_5_Core *gl5 = QOpenGLVersionFunctionsFactory::get<QOpenGLFunctions_4_5_Core>();
-#else
- QOpenGLFunctions_4_5_Core *gl5 = ctx->versionFunctions<QOpenGLFunctions_4_5_Core>();
-#endif
if (gl5 != nullptr)
gl5->glGetTextureParameteriv(m_sharedTextureId, GL_TEXTURE_TARGET, reinterpret_cast<int *>(&m_properties.target));
#endif
@@ -732,11 +724,7 @@ void GLTexture::introspectPropertiesFromSharedTextureId()
#if !QT_CONFIG(opengles2)
// Try to retrieve dimensions (not available on ES 2.0)
if (!ctx->isOpenGLES()) {
-#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
QOpenGLFunctions_3_1 *gl3 = QOpenGLVersionFunctionsFactory::get<QOpenGLFunctions_3_1>();
-#else
- QOpenGLFunctions_3_1 *gl3 = ctx->versionFunctions<QOpenGLFunctions_3_1>();
-#endif
if (!gl3) {
qWarning() << "Failed to retrieve shared texture dimensions";
return;