From 805d333284a02c86af0cf318445e8c1320e9abd4 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Wed, 12 Sep 2012 16:05:02 +0000 Subject: [PATCH] Evas_GL: Fix kakaroto's breakage in evas_gl. GL_WRITE_ONLY is only defined in GL/glext.h (which is not included if we are building for SGX). A build for SGX uses EGL which defines GL_WRITE_ONLY_OES instead. NB: I am not entirely sure that this is the 'proper' fix, but it allows evas to build again. SVN revision: 76540 --- legacy/evas/src/modules/engines/gl_common/evas_gl_context.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/legacy/evas/src/modules/engines/gl_common/evas_gl_context.c b/legacy/evas/src/modules/engines/gl_common/evas_gl_context.c index c0296f497c..1f4d8a3008 100644 --- a/legacy/evas/src/modules/engines/gl_common/evas_gl_context.c +++ b/legacy/evas/src/modules/engines/gl_common/evas_gl_context.c @@ -2572,7 +2572,11 @@ shader_array_flush(Evas_Engine_GL_Context *gc) } gc->pipe[i].array.buffer_use++; +# if defined(GLES_VARIETY_SGX) + void * x = glMapBuffer(GL_ARRAY_BUFFER, GL_WRITE_ONLY_OES); +# else void * x = glMapBuffer(GL_ARRAY_BUFFER, GL_WRITE_ONLY); +# endif if (gc->pipe[i].array.use_vertex) memcpy (x + VERTEX_POINTER, gc->pipe[i].array.vertex, VERTEX_SIZE); if (gc->pipe[i].array.use_color)