Commit 684c9f49 authored by Miguel A. Vico's avatar Miguel A. Vico Committed by Pekka Paalanen

gl-renderer: Accept non-NULL empty <visual_id> arrays

This change modifies egl_choose_config() to accept a non-NULL but empty
<visual_id> array (i.e. n_ids == 0)
Signed-off-by: default avatarMiguel A Vico Moya <>
Reviewed-by: default avatarAndy Ritger <>
Reviewed-by: James Jones's avatarJames Jones <>
Reviewed-by: Pekka Paalanen's avatarPekka Paalanen <>
parent 4057cd93
......@@ -2586,7 +2586,7 @@ egl_choose_config(struct gl_renderer *gr, const EGLint *attribs,
goto out;
if (!visual_id)
if (!visual_id || n_ids == 0)
config_index = 0;
for (i = 0; config_index == -1 && i < n_ids; i++)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment