summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl.cpp
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-11-15 22:04:46 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-11-15 22:13:09 (GMT)
commit0e74cc3e1a05147a8ae9c1c4be7c9f836da1acf3 (patch)
treeb5917c87769d657b16d6b726d59c4e3ae1839d96 /src/opengl/qgl.cpp
parentbb818bf70cef00bbdcafaac1bf017575baeab8dc (diff)
downloadQt-0e74cc3e1a05147a8ae9c1c4be7c9f836da1acf3.zip
Qt-0e74cc3e1a05147a8ae9c1c4be7c9f836da1acf3.tar.gz
Qt-0e74cc3e1a05147a8ae9c1c4be7c9f836da1acf3.tar.bz2
Make isSharing() reset to false when context no longer sharing
The documentation for QGLContext::isSharing() indicates that the function returns true only when the context is sharing. However, previously the sharing flag would stay on if the context was created as sharing but is no longer sharing. Task-number: QTBUG-5578 Reviewed-by: Sarah Smith
Diffstat (limited to 'src/opengl/qgl.cpp')
-rw-r--r--src/opengl/qgl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/qgl.cpp b/src/opengl/qgl.cpp
index 8063fc8..f8a2ea4 100644
--- a/src/opengl/qgl.cpp
+++ b/src/opengl/qgl.cpp
@@ -3030,7 +3030,7 @@ void QGLContext::setValid(bool valid)
bool QGLContext::isSharing() const
{
Q_D(const QGLContext);
- return d->sharing;
+ return d->group->isSharing();
}
QGLFormat QGLContext::format() const