summaryrefslogtreecommitdiffstats
path: root/src/opengl
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-07-15 13:30:06 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-07-15 14:38:09 (GMT)
commitd71f6a8c0c9c089d3fe18846835ee183aab47ae9 (patch)
tree2842e8adecb17b57ebb7854466b4536bd2f38e10 /src/opengl
parent21052c1ad0a670ab746298569c3a90720741a0ce (diff)
downloadQt-d71f6a8c0c9c089d3fe18846835ee183aab47ae9.zip
Qt-d71f6a8c0c9c089d3fe18846835ee183aab47ae9.tar.gz
Qt-d71f6a8c0c9c089d3fe18846835ee183aab47ae9.tar.bz2
Fix warnings in mingw
Diffstat (limited to 'src/opengl')
-rw-r--r--src/opengl/qgl_win.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/qgl_win.cpp b/src/opengl/qgl_win.cpp
index 400b3bc..232d47b 100644
--- a/src/opengl/qgl_win.cpp
+++ b/src/opengl/qgl_win.cpp
@@ -1413,7 +1413,7 @@ void QGLWidget::setContext(QGLContext *context,
}
if (!d->glcx->isValid()) {
- bool wasSharing = shareContext || oldcx && oldcx->isSharing();
+ bool wasSharing = shareContext || (oldcx && oldcx->isSharing());
d->glcx->create(shareContext ? shareContext : oldcx);
// the above is a trick to keep disp lists etc when a
// QGLWidget has been reparented, so remove the sharing