summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qplatformglcontext_qpa.h
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2011-01-20 07:44:27 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2011-01-25 18:07:35 (GMT)
commit37207d16cb51616c0b506dcc57126ff06c9073a9 (patch)
treee6079db4b9f9e1ee014d14086be79b6967adf98a /src/gui/kernel/qplatformglcontext_qpa.h
parentfd28a6ab14fc3c54c443718d405eeb9f98c7dd27 (diff)
downloadQt-37207d16cb51616c0b506dcc57126ff06c9073a9.zip
Qt-37207d16cb51616c0b506dcc57126ff06c9073a9.tar.gz
Qt-37207d16cb51616c0b506dcc57126ff06c9073a9.tar.bz2
Make QGLContext::fromPlatformGLContext show correct sharing
information. Prior to this, if a context was created with QGLWidget it would setup the sharing correct, but all sharing actually created on a QPlatformGLContext level was ignored by the QGLContext, thus indicating that it wasnt sharing with any other context.
Diffstat (limited to 'src/gui/kernel/qplatformglcontext_qpa.h')
-rw-r--r--src/gui/kernel/qplatformglcontext_qpa.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qplatformglcontext_qpa.h b/src/gui/kernel/qplatformglcontext_qpa.h
index a70e046..807ed3d 100644
--- a/src/gui/kernel/qplatformglcontext_qpa.h
+++ b/src/gui/kernel/qplatformglcontext_qpa.h
@@ -69,7 +69,7 @@ public:
virtual QPlatformWindowFormat platformWindowFormat() const = 0;
const static QPlatformGLContext *currentContext();
- const static QPlatformGLContext *defaultSharedContext();
+ static QPlatformGLContext *defaultSharedContext();
protected: