summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-10-09 13:13:51 +1000
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-10-09 13:13:51 +1000
commit8ee6d090d45198fb2530849236c97f014666b7e4 (patch)
treecff6a4c38bdf28791a98db7ad7eaa652ab8029fa /src
parentef8d9fa7091b0d45fe15aae43b8f1c47547cb16d (diff)
EGL_SAMPLES should be 1, not -1, to select number of samples
Reviewed-by: trustme
Diffstat (limited to 'src')
-rw-r--r--src/opengl/qgl_egl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/qgl_egl.cpp b/src/opengl/qgl_egl.cpp
index fa876c7972..fbf034988a 100644
--- a/src/opengl/qgl_egl.cpp
+++ b/src/opengl/qgl_egl.cpp
@@ -75,7 +75,7 @@ void qt_egl_set_format(QEglProperties& props, int deviceType, const QGLFormat& f
props.setValue(EGL_STENCIL_SIZE, f.stencilBufferSize() == -1 ? 1 : f.stencilBufferSize());
if (f.sampleBuffers()) {
props.setValue(EGL_SAMPLE_BUFFERS, 1);
- props.setValue(EGL_SAMPLES, f.samples());
+ props.setValue(EGL_SAMPLES, f.samples() == -1 ? 1 : f.samples());
} else {
props.setValue(EGL_SAMPLE_BUFFERS, 0);
}