diff options
Diffstat (limited to 'src/gui/kernel/qplatformglcontext_qpa.cpp')
-rw-r--r-- | src/gui/kernel/qplatformglcontext_qpa.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/gui/kernel/qplatformglcontext_qpa.cpp b/src/gui/kernel/qplatformglcontext_qpa.cpp index efad9e3cd6..81030b8cfe 100644 --- a/src/gui/kernel/qplatformglcontext_qpa.cpp +++ b/src/gui/kernel/qplatformglcontext_qpa.cpp @@ -79,3 +79,31 @@ Reimplement this function in a subclass to indicate what format the glContext actually has. */ + +struct QPlatformGLContextPrivate +{ + QGuiGLContext *context; +}; + +QPlatformGLContext::QPlatformGLContext() + : d_ptr(new QPlatformGLContextPrivate) +{ + Q_D(QPlatformGLContext); + d->context = 0; +} + +QPlatformGLContext::~QPlatformGLContext() +{ +} + +QGuiGLContext *QPlatformGLContext::context() const +{ + Q_D(const QPlatformGLContext); + return d->context; +} + +void QPlatformGLContext::setContext(QGuiGLContext *context) +{ + Q_D(QPlatformGLContext); + d->context = context; +} |