From 3cb010215dd03cf3e3cdcf0e8b9c4c64c7cf3b1f Mon Sep 17 00:00:00 2001 From: Jose Fonseca Date: Sun, 8 May 2016 22:58:26 +0100 Subject: gltrace: Never call glGetBufferSubData on ES. --- wrappers/gltrace_arrays.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'wrappers') 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); -- cgit v1.2.3