forked from enlightenment/efl
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
This commit is contained in:
parent
0e0b265470
commit
805d333284
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue