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>
This commit is contained in:
parent
165926c3ae
commit
a54b271c39
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user