jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=21c91928d22cd595a7bc0b29e33f936ae1c3afaa

commit 21c91928d22cd595a7bc0b29e33f936ae1c3afaa
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Mon Apr 13 13:51:53 2015 +0900

    Evas GL common: Fix size of vertices data buffer
    
    This actually has more chances of fixing Dave's GL crash.
---
 src/modules/evas/engines/gl_common/evas_gl_context.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/modules/evas/engines/gl_common/evas_gl_context.c 
b/src/modules/evas/engines/gl_common/evas_gl_context.c
index 3a80385..12da9f9 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_context.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_context.c
@@ -3006,7 +3006,7 @@ shader_array_flush(Evas_Engine_GL_Context *gc)
 # define VERTEX_SIZE (gc->pipe[i].array.num * sizeof(GLshort) * VERTEX_CNT)
 # define COLOR_SIZE (gc->pipe[i].array.num * sizeof(GLubyte) * COLOR_CNT)
 # define TEX_SIZE (gc->pipe[i].array.num * sizeof(GLfloat) * TEX_CNT)
-# define MASK_SIZE (gc->pipe[i].array.num * sizeof(GLubyte) * MASK_CNT)
+# define MASK_SIZE (gc->pipe[i].array.num * sizeof(GLfloat) * MASK_CNT)
              vertex_ptr = NULL;
              color_ptr = vertex_ptr + VERTEX_SIZE;
              texuv_ptr = color_ptr + COLOR_SIZE;
@@ -3015,7 +3015,7 @@ shader_array_flush(Evas_Engine_GL_Context *gc)
              texa_ptr = texuv3_ptr + TEX_SIZE;
              texsam_ptr = texa_ptr + TEX_SIZE;
              mask_ptr = texsam_ptr + TEX_SIZE;
-# define END_POINTER (mask_ptr + TEX_SIZE)
+# define END_POINTER (mask_ptr + MASK_SIZE)
 
              glBindBuffer(GL_ARRAY_BUFFER, gc->pipe[i].array.buffer);
              if ((gc->pipe[i].array.buffer_alloc < (long)END_POINTER) ||

-- 


Reply via email to