evas/image - return as possible as soon.
authorChunEon Park <hermet@hermet.pe.kr>
Fri, 28 Dec 2012 11:41:29 +0000 (11:41 +0000)
committerChunEon Park <hermet@hermet.pe.kr>
Fri, 28 Dec 2012 11:41:29 +0000 (11:41 +0000)
SVN revision: 81794

src/lib/evas/canvas/evas_object_image.c

index 62ae530..2296d57 100644 (file)
@@ -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);