summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl_egl.cpp
diff options
context:
space:
mode:
authorTrond Kjernåsen <trond.kjernasen@nokia.com>2010-06-25 15:21:26 (GMT)
committerTrond Kjernåsen <trond.kjernasen@nokia.com>2010-06-25 15:21:26 (GMT)
commitcc75093e3b300a37d05a81921d7811caabbfb449 (patch)
tree11abe920a50cbb6fbf0c7eb6cf491880e68bfb59 /src/opengl/qgl_egl.cpp
parentc5aa53243bca8261d55d81cfeb525739a68b7703 (diff)
downloadQt-cc75093e3b300a37d05a81921d7811caabbfb449.zip
Qt-cc75093e3b300a37d05a81921d7811caabbfb449.tar.gz
Qt-cc75093e3b300a37d05a81921d7811caabbfb449.tar.bz2
EGL plane levels are the same as all other GL backends.
Qt has never used level 1 for the main plane, it's always been 0 and will always be 0. Reviewed-by: Harald Fernengel
Diffstat (limited to 'src/opengl/qgl_egl.cpp')
-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 0a19531..58d3b0a 100644
--- a/src/opengl/qgl_egl.cpp
+++ b/src/opengl/qgl_egl.cpp
@@ -138,7 +138,7 @@ void qt_glformat_from_eglconfig(QGLFormat& format, const EGLConfig config)
format.setDepthBufferSize(depthSize);
format.setStencilBufferSize(stencilSize);
format.setSamples(sampleCount);
- format.setPlane(level + 1); // EGL calls level 0 "normal" whereas Qt calls 1 "normal"
+ format.setPlane(level);
format.setDirectRendering(true); // All EGL contexts are direct-rendered
format.setRgba(true); // EGL doesn't support colour index rendering
format.setStereo(false); // EGL doesn't support stereo buffers