forked from enlightenment/efl
evas: gl backend - ensure eng_window_use in image_content_hint_set
Summary: Ensure eng_window_use in image_content_hint_set Test Plan: 1. make native OpenGLES application. 2. set evas object image with evas_object_image_native_surface_set. 3. GLES Application try to call eglMakeCurrent with own eglContext, then resize evas object resize Reviewers: Hermet, raster, cedric Reviewed By: cedric CC: cedric, seoz Differential Revision: https://phab.enlightenment.org/D523 Signed-off-by: Cedric BAIL <cedric.bail@samsung.com>
This commit is contained in:
parent
793a1a5c1c
commit
3420eda31a
|
@ -985,8 +985,12 @@ eng_image_map_surface_free(void *data EINA_UNUSED, void *surface)
|
|||
}
|
||||
|
||||
static void
|
||||
eng_image_content_hint_set(void *data EINA_UNUSED, void *image, int hint)
|
||||
eng_image_content_hint_set(void *data, void *image, int hint)
|
||||
{
|
||||
Render_Engine *re;
|
||||
re = (Render_Engine *)data;
|
||||
|
||||
if (re) eng_window_use(re->win);
|
||||
if (image) evas_gl_common_image_content_hint_set(image, hint);
|
||||
}
|
||||
|
||||
|
|
|
@ -3103,8 +3103,12 @@ eng_image_map_surface_free(void *data EINA_UNUSED, void *surface)
|
|||
}
|
||||
|
||||
static void
|
||||
eng_image_content_hint_set(void *data EINA_UNUSED, void *image, int hint)
|
||||
eng_image_content_hint_set(void *data, void *image, int hint)
|
||||
{
|
||||
Render_Engine *re;
|
||||
re = (Render_Engine *)data;
|
||||
|
||||
if (re) eng_window_use(re->win);
|
||||
if (image) evas_gl_common_image_content_hint_set(image, hint);
|
||||
}
|
||||
|
||||
|
|
|
@ -2292,8 +2292,12 @@ eng_image_stride_get(void *data EINA_UNUSED, void *image, int *stride)
|
|||
}
|
||||
|
||||
static void
|
||||
eng_image_content_hint_set(void *data EINA_UNUSED, void *image, int hint)
|
||||
eng_image_content_hint_set(void *data, void *image, int hint)
|
||||
{
|
||||
Render_Engine *re;
|
||||
re = (Render_Engine *)data;
|
||||
|
||||
if (re) eng_window_use(re->win);
|
||||
if (image) evas_gl_common_image_content_hint_set(image, hint);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue