diff options
-rw-r--r-- | src/opengl/qgl_egl.cpp | 2 | ||||
-rw-r--r-- | src/opengl/qgl_symbian.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/opengl/qgl_egl.cpp b/src/opengl/qgl_egl.cpp index 38f7fda..b373346 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 f2535d5..91f46b9 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); } } |