gl-renderer: fix pbuffer surface creation
authorTomek Bury <tomek.bury@broadcom.com>
Thu, 4 Jun 2020 13:59:55 +0000 (14:59 +0100)
committerTomek Bury <tomek.bury@broadcom.com>
Thu, 11 Jun 2020 09:52:22 +0000 (10:52 +0100)
commitba54831100ab3a0488b3bb84381e9ca9668978a9
treee74dcf335cfd35b793f6ce669b234825851df88b
parent15c603caa6f1fbd06bc866a4131dbbd26f941c1f
gl-renderer: fix pbuffer surface creation

When there's neither configless nor surfaceless EGL extension
(i.e. not a Mesa driver), Weston falls back to a dummy pbuffer surface.

Weston attempts to find for that surface an EGL config but uses a NULL
array of pixel formats. This fails with the following messages:

 EGL_KHR_surfaceless_context unavailable. Trying PbufferSurface
 Found an EGLConfig matching { pbf;  } but it is not usable because
    neither EGL_KHR_no_config_context nor EGL_MESA_configless_context
    are supported by EGL.
 failed to choose EGL config for PbufferSurface
 EGL error state: EGL_SUCCESS (0x3000)
 Failed to initialise the GL renderer;

Signed-off-by: Tomek Bury <tomek.bury@broadcom.com>
libweston/renderer-gl/gl-renderer.c