compositor-drm: fall back to EGL visual_id 0 if no others work
commit e76f185 stopped using visuals with "native visual id" == 0
This broke some systems, so we now try 0 as a worst case fallback if
everything else has failed.
Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
This commit is contained in:
committed by
Bryce Harrington
parent
0336ca0cc5
commit
6d556374b8
@@ -1559,14 +1559,15 @@ fallback_format_for(uint32_t format)
|
|||||||
static int
|
static int
|
||||||
drm_backend_create_gl_renderer(struct drm_backend *b)
|
drm_backend_create_gl_renderer(struct drm_backend *b)
|
||||||
{
|
{
|
||||||
EGLint format[2] = {
|
EGLint format[3] = {
|
||||||
b->format,
|
b->format,
|
||||||
fallback_format_for(b->format),
|
fallback_format_for(b->format),
|
||||||
|
0,
|
||||||
};
|
};
|
||||||
int n_formats = 1;
|
int n_formats = 2;
|
||||||
|
|
||||||
if (format[1])
|
if (format[1])
|
||||||
n_formats = 2;
|
n_formats = 3;
|
||||||
if (gl_renderer->create(b->compositor,
|
if (gl_renderer->create(b->compositor,
|
||||||
EGL_PLATFORM_GBM_KHR,
|
EGL_PLATFORM_GBM_KHR,
|
||||||
(void *)b->gbm,
|
(void *)b->gbm,
|
||||||
|
|||||||
Reference in New Issue
Block a user