diff --git a/src/lib/evas/canvas/evas_object_image.c b/src/lib/evas/canvas/evas_object_image.c index 62ae5307b3..2296d57268 100644 --- a/src/lib/evas/canvas/evas_object_image.c +++ b/src/lib/evas/canvas/evas_object_image.c @@ -2846,12 +2846,11 @@ _proxy_subrender(Evas *eo_e, Evas_Object *eo_source, Eina_Bool do_async) { source->proxy.surface = e->engine.func->image_map_surface_new (e->engine.data.output, w, h, 1); + if (!source->proxy.surface) return; source->proxy.w = w; source->proxy.h = h; } - if (!source->proxy.surface) return; - ctx = e->engine.func->context_new(e->engine.data.output); e->engine.func->context_color_set(e->engine.data.output, ctx, 0, 0, 0, 0); e->engine.func->context_render_op_set(e->engine.data.output, ctx, EVAS_RENDER_COPY);