summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qopenglcontext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/kernel/qopenglcontext.cpp')
-rw-r--r--src/gui/kernel/qopenglcontext.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/gui/kernel/qopenglcontext.cpp b/src/gui/kernel/qopenglcontext.cpp
index c93752c3d70..9f03020c228 100644
--- a/src/gui/kernel/qopenglcontext.cpp
+++ b/src/gui/kernel/qopenglcontext.cpp
@@ -56,6 +56,10 @@
#include <private/qopenglextensions_p.h>
#include <private/qopenglversionfunctionsfactory_p.h>
+#if !defined(QT_OPENGL_ES_2)
+#include <private/qopengltexturehelper_p.h>
+#endif
+
#include <QDebug>
QT_BEGIN_NAMESPACE
@@ -523,6 +527,10 @@ void QOpenGLContext::destroy()
d->versionFunctions.clear();
qDeleteAll(d->versionFunctionsBackend);
d->versionFunctionsBackend.clear();
+#if !defined(QT_OPENGL_ES_2)
+ delete d->textureFunctions;
+ d->textureFunctions = 0;
+#endif
}
/*!
@@ -976,6 +984,26 @@ void QOpenGLContext::removeFunctionsBackend(const QOpenGLVersionStatus &v)
d->versionFunctionsBackend.remove(v);
}
+#if !defined(QT_OPENGL_ES_2)
+/*!
+ \internal
+*/
+QOpenGLTextureHelper* QOpenGLContext::textureFunctions() const
+{
+ Q_D(const QOpenGLContext);
+ return d->textureFunctions;
+}
+
+/*!
+ \internal
+*/
+void QOpenGLContext::setTextureFunctions(QOpenGLTextureHelper* textureFuncs)
+{
+ Q_D(QOpenGLContext);
+ d->textureFunctions = textureFuncs;
+}
+#endif
+
/*!
\class QOpenGLContextGroup
\since 5.0