1 From 5b5de6a814b43ca023a92b85b407b3d061dbc64f Mon Sep 17 00:00:00 2001
2 From: Eric Ruei <e-ruei1@ti.com>
3 Date: Thu, 9 Mar 2017 14:32:24 -0500
4 Subject: [PATCH 2/4] Weston: Allow visual_id to be 0
6 The inquiry of visual id from egl API eglGetConfigAttrib(EGL_NATIVE_VISUAL_ID)
7 is an optional feature. The visual id will be set to 0 if this feature is
8 not supported. Therefore, the return condition @function match_config_to_visual()
9 should be (id == visual_id || id == 0) instead of (id == visual_id)
11 Signed-off-by: Eric Ruei <e-ruei1@ti.com>
13 src/gl-renderer.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
16 diff --git a/src/gl-renderer.c b/src/gl-renderer.c
17 index 23c0cd7..4c1f170 100644
18 --- a/src/gl-renderer.c
19 +++ b/src/gl-renderer.c
20 @@ -2462,7 +2462,7 @@ match_config_to_visual(EGLDisplay egl_display,
24 - if (id == visual_id)
25 + if (id == visual_id || id == 0)