summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormread <qt-info@nokia.com>2012-01-10 16:20:18 +0000
committerPasi Pentikäinen <ext-pasi.a.pentikainen@nokia.com>2012-01-16 10:41:28 +0100
commit847e235b91de9cafd155afc3ead5a2ae89a18120 (patch)
tree87304fed5de089b3e4cafb3aad120abb9c0f4207
parent2fe8fefa521b5ce747651572bae8671476aae625 (diff)
downloadqt4-tools-847e235b91de9cafd155afc3ead5a2ae89a18120.tar.gz
Using samples=0 to turn multisampling off
Change 54613aec was using the value 1 for QGLFormat::samples when it wanted multisampling off. But this was actually resulting in multisampling being turned on. It should have been using 0, which it now does. Task-number: ou1cimx1#951223 Change-Id: Ie68367f083f7ab4bae4143a59996c71add3e5c06 Reviewed-by: Pasi Pentikäinen <ext-pasi.a.pentikainen@nokia.com> (cherry picked from commit 0ce52668616eba11de6c8255ec5319db3405483a) Reviewed-by: Juha Kukkonen
-rw-r--r--src/opengl/qgl_egl.cpp2
-rw-r--r--src/opengl/qgl_symbian.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/opengl/qgl_egl.cpp b/src/opengl/qgl_egl.cpp
index 21047d7dda..db6be1c774 100644
--- a/src/opengl/qgl_egl.cpp
+++ b/src/opengl/qgl_egl.cpp
@@ -81,7 +81,7 @@ void qt_eglproperties_set_glformat(QEglProperties& eglProperties, const QGLForma
alphaSize = alphaSize > 0 ? alphaSize : 8;
depthSize = depthSize > 0 ? depthSize : 24;
stencilSize = stencilSize > 0 ? stencilSize : 8;
- sampleCount = sampleCount > 0 ? sampleCount : 4;
+ sampleCount = sampleCount >= 0 ? sampleCount : 4;
#else
// QGLFormat uses a magic value of -1 to indicate "don't care", even when a buffer of that
// type has been requested. So we must check QGLFormat's booleans too if size is -1:
diff --git a/src/opengl/qgl_symbian.cpp b/src/opengl/qgl_symbian.cpp
index 7d343f66a2..b8b9172541 100644
--- a/src/opengl/qgl_symbian.cpp
+++ b/src/opengl/qgl_symbian.cpp
@@ -192,7 +192,7 @@ bool QGLContext::chooseContext(const QGLContext* shareContext) // almost same as
d->glFormat.setSamples(4);
} else {
d->glFormat.setSampleBuffers(0);
- d->glFormat.setSamples(1);
+ d->glFormat.setSamples(0);
}
}