diff options
author | Gunnar Sletta <gunnar.sletta@nokia.com> | 2011-12-06 08:30:40 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-12-06 08:40:25 +0100 |
commit | 6ddcdee120bba6f90b0fd7494e005647c9f63d4b (patch) | |
tree | 6b2b171e4ec4e91a1076e947bb6aae7cc95db6fc /src/plugins/platforms/eglfs | |
parent | 7ac3d7c5c1738a3c99f6e9b26a3f79e424ca15f1 (diff) |
Ask for a context that is likely to be supported.
Most embedded GL chips support 24-bit depth with packed
8 bit stencil, but more rarely 32-bit. Asking for 32
bit means we often fail on other properties to, such as
multisampling.
Change-Id: Ib913d94af0635b09913ff15cff54cc694ba293fc
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/plugins/platforms/eglfs')
-rw-r--r-- | src/plugins/platforms/eglfs/qeglfsscreen.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/platforms/eglfs/qeglfsscreen.cpp b/src/plugins/platforms/eglfs/qeglfsscreen.cpp index 4f83e3a5ad..abbe0d951f 100644 --- a/src/plugins/platforms/eglfs/qeglfsscreen.cpp +++ b/src/plugins/platforms/eglfs/qeglfsscreen.cpp @@ -163,7 +163,8 @@ void QEglFSScreen::createAndSetPlatformContext() m_depth = 16; m_format = QImage::Format_RGB16; } else { - platformFormat.setDepthBufferSize(32); + platformFormat.setDepthBufferSize(24); + platformFormat.setStencilBufferSize(8); platformFormat.setRedBufferSize(8); platformFormat.setGreenBufferSize(8); platformFormat.setBlueBufferSize(8); |