Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

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


Modified Files:
        evas_gl_font.c 


Log Message:


hrrm. 0x0 textures - libGL in new nvidia drivers is most unhappy with! fix.

===================================================================
RCS file: /cvs/e/e17/libs/evas/src/modules/engines/gl_common/evas_gl_font.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- evas_gl_font.c      6 Dec 2006 14:58:00 -0000       1.3
+++ evas_gl_font.c      22 Jan 2008 05:31:25 -0000      1.4
@@ -16,12 +16,14 @@
 
    if (fg->ext_dat) return fg->ext_dat;
    
+   w = fg->glyph_out->bitmap.width;
+   h = fg->glyph_out->bitmap.rows;
+   
+   if ((w == 0) || (h == 0)) return NULL;
    ft = calloc(1, sizeof(Evas_GL_Font_Texture));
    if (!ft) return NULL;
 
    data = fg->glyph_out->bitmap.buffer;
-   w = fg->glyph_out->bitmap.width;
-   h = fg->glyph_out->bitmap.rows;
    j = fg->glyph_out->bitmap.pitch;
    if (j < w) j = w;
 



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to