diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-10-09 03:13:51 (GMT) |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-10-09 03:13:51 (GMT) |
commit | 8ee6d090d45198fb2530849236c97f014666b7e4 (patch) | |
tree | cff6a4c38bdf28791a98db7ad7eaa652ab8029fa /src/opengl/qgl_egl.cpp | |
parent | ef8d9fa7091b0d45fe15aae43b8f1c47547cb16d (diff) | |
download | Qt-8ee6d090d45198fb2530849236c97f014666b7e4.zip Qt-8ee6d090d45198fb2530849236c97f014666b7e4.tar.gz Qt-8ee6d090d45198fb2530849236c97f014666b7e4.tar.bz2 |
EGL_SAMPLES should be 1, not -1, to select number of samples
Reviewed-by: trustme
Diffstat (limited to 'src/opengl/qgl_egl.cpp')
-rw-r--r-- | src/opengl/qgl_egl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/qgl_egl.cpp b/src/opengl/qgl_egl.cpp index fa876c7..fbf0349 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); } |