summaryrefslogtreecommitdiffstats
path: root/src/opengl/qopenglversionfunctions_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/opengl/qopenglversionfunctions_p.h')
-rw-r--r--src/opengl/qopenglversionfunctions_p.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/opengl/qopenglversionfunctions_p.h b/src/opengl/qopenglversionfunctions_p.h
index cd1bb480ce..cad4374e27 100644
--- a/src/opengl/qopenglversionfunctions_p.h
+++ b/src/opengl/qopenglversionfunctions_p.h
@@ -62,6 +62,8 @@
#include "qopenglversionfunctions.h"
+#include <QtGui/private/qopenglcontext_p.h>
+
#include <QtOpenGL/qtopenglglobal.h>
#include <QtOpenGL/QOpenGLVersionProfile>
#include <QtCore/QSet>
@@ -70,16 +72,14 @@ QT_BEGIN_NAMESPACE
class QAbstractOpenGLFunctions;
-class QOpenGLContextVersionData {
+class QOpenGLContextVersionData : public QOpenGLContextVersionFunctionHelper
+{
public:
QHash<QOpenGLVersionProfile, QAbstractOpenGLFunctions *> functions;
QOpenGLVersionFunctionsStorage functionsStorage;
QSet<QAbstractOpenGLFunctions *> externalFunctions;
- // TODO: who calls delete?
- ~QOpenGLContextVersionData();
+ ~QOpenGLContextVersionData() override;
static QOpenGLContextVersionData *forContext(QOpenGLContext *context);
-private:
- static QMap<QOpenGLContext *, QOpenGLContextVersionData *> contextData;
};
QT_END_NAMESPACE