Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/modules/engines/gl_x11


Modified Files:
        evas_engine.c 


Log Message:


colorspace work mostly. not complete.

===================================================================
RCS file: /cvs/e/e17/libs/evas/src/modules/engines/gl_x11/evas_engine.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -3 -r1.20 -r1.21
--- evas_engine.c       19 Dec 2006 14:12:40 -0000      1.20
+++ evas_engine.c       29 Dec 2006 03:32:46 -0000      1.21
@@ -150,6 +150,7 @@
    Render_Engine *re;
 
    re = (Render_Engine *)data;
+   evas_gl_common_context_resize(re->win->gl_context, re->win->w, re->win->h);
    /* smple bounding box */
    if (!re->win->draw.redraw)
      {
@@ -747,9 +748,10 @@
                                                                     
eng_image_colorspace_get(data, image));
                  if (!im_new)
                    {
-                      return im;
                       *image_data = NULL;
+                      return im;
                    }
+                 evas_gl_common_image_free(im);
                  im = im_new;
               }
             else
@@ -790,6 +792,7 @@
             im2 = eng_image_new_from_data(data, w, h, image_data,
                                           eng_image_alpha_get(data, image),
                                           eng_image_colorspace_get(data, 
image));
+            if (!im2) return im;
             evas_gl_common_image_free(im);
             im = im2;
          }



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to