[PATCH weston 5/7] gl-renderer: set num_images after import_simple_dmabuf
Emre Ucan
eucan at de.adit-jv.com
Tue Mar 20 14:29:39 UTC 2018
we have to set num_images after import_simple_dmabuf
call. Otherwise, egl_images will not be correctly
referenced in gl_renderer_attach_dmabuf.
(Found by clang source code analyzer)
Signed-off-by: Emre Ucan <eucan at de.adit-jv.com>
---
libweston/gl-renderer.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libweston/gl-renderer.c b/libweston/gl-renderer.c
index a6b29a9..2c50d2d 100644
--- a/libweston/gl-renderer.c
+++ b/libweston/gl-renderer.c
@@ -2216,6 +2216,7 @@ import_known_dmabuf(struct gl_renderer *gr,
image->images[0] = import_simple_dmabuf(gr, &image->dmabuf->attributes);
if (!image->images[0])
return false;
+ image->num_images = 1;
break;
case IMPORT_TYPE_GL_CONVERSION:
--
2.7.4
More information about the wayland-devel
mailing list