summaryrefslogtreecommitdiffstats
path: root/src/platformsupport/eglconvenience
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@live.com>2013-02-18 16:42:17 -0600
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-19 15:10:44 +0100
commita54b271c390f54b4aafa1b7f7cd5e2c1b82cb8ad (patch)
tree8adaa6ee83ba28c38e4e0bedcbaee8bd9204a194 /src/platformsupport/eglconvenience
parent165926c3ae4db828cd83fad0f2407acdece1a37e (diff)
Fix EGL_BAD_MATCH when requesting a 16-bit surface with eglfs.
QEglFSWindow does not request highestPixelFormat, and can obtain a 16-bit config when requested. QEGLPlatformContext does request highestPixelFormat, and can obtain a 32-bit config when a 16-bit config is requested, leading to this error. Change-Id: I418c09a35ec19b2e9ca372b32599034e02384e44 Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Diffstat (limited to 'src/platformsupport/eglconvenience')
-rw-r--r--src/platformsupport/eglconvenience/qeglplatformcontext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platformsupport/eglconvenience/qeglplatformcontext.cpp b/src/platformsupport/eglconvenience/qeglplatformcontext.cpp
index eafd7a5288..8152f74067 100644
--- a/src/platformsupport/eglconvenience/qeglplatformcontext.cpp
+++ b/src/platformsupport/eglconvenience/qeglplatformcontext.cpp
@@ -63,7 +63,7 @@ QEGLPlatformContext::QEGLPlatformContext(const QSurfaceFormat &format, QPlatform
EGLenum eglApi)
: m_eglDisplay(display)
, m_eglApi(eglApi)
- , m_eglConfig(q_configFromGLFormat(display, format, true))
+ , m_eglConfig(q_configFromGLFormat(display, format))
{
init(format, share);
}