summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gui/kernel/qplatformopenglcontext_qpa.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/kernel/qplatformopenglcontext_qpa.cpp b/src/gui/kernel/qplatformopenglcontext_qpa.cpp
index 26920cc574..3b2ce2465b 100644
--- a/src/gui/kernel/qplatformopenglcontext_qpa.cpp
+++ b/src/gui/kernel/qplatformopenglcontext_qpa.cpp
@@ -84,16 +84,17 @@ QT_BEGIN_NAMESPACE
Reimplement this function in a subclass to indicate what format the glContext actually has.
*/
-struct QPlatformOpenGLContextPrivate
+class QPlatformOpenGLContextPrivate
{
+public:
+ QPlatformOpenGLContextPrivate() : context(0) {}
+
QOpenGLContext *context;
};
QPlatformOpenGLContext::QPlatformOpenGLContext()
: d_ptr(new QPlatformOpenGLContextPrivate)
{
- Q_D(QPlatformOpenGLContext);
- d->context = 0;
}
QPlatformOpenGLContext::~QPlatformOpenGLContext()