evas - let's not set dynamic img hints if extns not there

This commit is contained in:
Carsten Haitzler 2021-01-14 19:48:18 +00:00
parent 34b0d0e973
commit 0d9cc0a562
1 changed files with 5 additions and 0 deletions

View File

@ -602,6 +602,11 @@ void
evas_gl_common_image_content_hint_set(Evas_GL_Image *im, int hint)
{
if (im->content_hint == hint) return;
if ((im->gc) &&
((!im->gc->shared->info.sec_image_map) &&
((!im->gc->shared->info.sec_tbm_surface) ||
(!im->gc->shared->info.egl_tbm_ext))))
return;
im->content_hint = hint;
if (!im->gc) return;
if (!im->gc->shared->info.bgra) return;