diff options
author | Trond Kjernåsen <trond.kjernasen@nokia.com> | 2010-09-24 11:16:01 (GMT) |
---|---|---|
committer | Trond Kjernåsen <trond.kjernasen@nokia.com> | 2010-09-24 11:17:14 (GMT) |
commit | 4e781b65c60c6bdf0917fe9983a4f1e699643e55 (patch) | |
tree | 7bb9305e4c6ccabe6ef3218514605075daa663f7 | |
parent | d31dcaf0c17d56f74d4faeaae3b5ce54ed847ee6 (diff) | |
download | Qt-4e781b65c60c6bdf0917fe9983a4f1e699643e55.zip Qt-4e781b65c60c6bdf0917fe9983a4f1e699643e55.tar.gz Qt-4e781b65c60c6bdf0917fe9983a4f1e699643e55.tar.bz2 |
Don't pretend to support single buffered EGL surfaces.
Task-number: QTBUG-12865
Reviewed-by: Samuel
-rw-r--r-- | src/opengl/qgl.cpp | 3 | ||||
-rw-r--r-- | src/opengl/qgl_egl.cpp | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/opengl/qgl.cpp b/src/opengl/qgl.cpp index 0d1a66e..b678790 100644 --- a/src/opengl/qgl.cpp +++ b/src/opengl/qgl.cpp @@ -509,6 +509,9 @@ QGLFormat::~QGLFormat() exchange the screen contents with the buffer. The result is flicker-free drawing and often better performance. + Note that single buffered contexts are currently not supported + with EGL. + \sa doubleBuffer(), QGLContext::swapBuffers(), QGLWidget::swapBuffers() */ diff --git a/src/opengl/qgl_egl.cpp b/src/opengl/qgl_egl.cpp index ebd1169..c79c4cd 100644 --- a/src/opengl/qgl_egl.cpp +++ b/src/opengl/qgl_egl.cpp @@ -143,6 +143,7 @@ void qt_glformat_from_eglconfig(QGLFormat& format, const EGLConfig config) format.setRgba(true); // EGL doesn't support colour index rendering format.setStereo(false); // EGL doesn't support stereo buffers format.setAccumBufferSize(0); // EGL doesn't support accululation buffers + format.setDoubleBuffer(true); // We don't support single buffered EGL contexts // Clear the EGL error state because some of the above may // have errored out because the attribute is not applicable |