This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch fix/gl-filter-buffers
in repository efl.
View the commit online.
commit 5f8b75a0bba134e28824b3b53fbce2f2a16c7194
Author: Cedric BAIL <[email protected]>
AuthorDate: Sat Nov 28 15:03:53 2026 -0600
evas/gl: upload an image's pixels before filtering it
The image used as a filter input was only updated when it had no
texture yet. One with a texture and pixels still to upload, as an image
with an alpha channel set from its data, was sampled empty: filtering
it on a GL canvas drew nothing at all.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
.../evas/engines/gl_generic/evas_ector_gl_image_buffer.c | 13 ++++---------
1 file changed, 4 insertions(+), 9 deletions(-)
diff --git a/src/modules/evas/engines/gl_generic/evas_ector_gl_image_buffer.c b/src/modules/evas/engines/gl_generic/evas_ector_gl_image_buffer.c
index 2a85948eee..e7219c7ae3 100644
--- a/src/modules/evas/engines/gl_generic/evas_ector_gl_image_buffer.c
+++ b/src/modules/evas/engines/gl_generic/evas_ector_gl_image_buffer.c
@@ -80,16 +80,11 @@ _evas_ector_gl_image_buffer_evas_ector_buffer_engine_image_set(Eo *obj EINA_UNUS
EINA_SAFETY_ON_FALSE_RETURN(!pd->glim);
EINA_SAFETY_ON_NULL_RETURN(im);
+ /* As before any draw of it: create the texture of the image, or upload
+ * the pixels changed since it was. */
+ evas_gl_common_image_update(re->window_gl_context_get(re->software.ob), im);
if (!im->tex)
- {
- Evas_Engine_GL_Context *gc;
-
- gc = re->window_gl_context_get(re->software.ob);
- evas_gl_common_image_update(gc, im);
-
- if (!im->tex)
- fail("Image has no texture!");
- }
+ fail("Image has no texture!");
pd->re = re;
evas_gl_common_image_ref(im);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.