diff options
Diffstat (limited to 'wrappers')
-rw-r--r-- | wrappers/gltrace_arrays.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/wrappers/gltrace_arrays.cpp b/wrappers/gltrace_arrays.cpp index 30d70220..c2067d93 100644 --- a/wrappers/gltrace_arrays.cpp +++ b/wrappers/gltrace_arrays.cpp @@ -66,6 +66,12 @@ _glDraw_count(gltrace::Context *ctx, const DrawElementsParams ¶ms) GLint element_array_buffer = _element_array_buffer_binding(); if (element_array_buffer) { // Read indices from index buffer object + if (ctx->profile.es()) { + // We could try to implement this on top of GL_OES_mapbuffer but should seldom be needed + os::log("apitrace: warning: %s: element array buffer with memory vertex arrays no longer supported on ES\n", __FUNCTION__); + return 0; + } + GLintptr offset = (GLintptr)indices; GLsizeiptr size = count*_gl_type_size(type); temp = malloc(size); |