cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=202b3ad6ba35d7ce2e8384442c3d42c1f5667c44

commit 202b3ad6ba35d7ce2e8384442c3d42c1f5667c44
Author: Cedric Bail <[email protected]>
Date:   Sun May 4 00:16:35 2014 +0200

    evas: behave nicely with unitialized data.
    
    CID 1210818
    
    It would be a better and more working fix to use Evas_GL_Image, sadly
    no time to do it right now and may be to intrusive for an alpha release.
---
 src/modules/evas/engines/gl_common/evas_gl_3d.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/evas/engines/gl_common/evas_gl_3d.c 
b/src/modules/evas/engines/gl_common/evas_gl_3d.c
index 9fa9737..bd4d53b 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_3d.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_3d.c
@@ -171,7 +171,7 @@ e3d_texture_file_set(E3D_Texture *texture, const char 
*file, const char *key)
           color_format = EVAS_3D_COLOR_FORMAT_RGBA;
           break;
         default:
-          break;
+          return;
      }
    e3d_texture_data_set(texture, color_format, pixel_format, im->cache_entry.w,
                         im->cache_entry.h, im->image.data);

-- 


Reply via email to