summaryrefslogtreecommitdiff
path: root/wrappers
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2016-05-08 22:58:26 +0100
committerJose Fonseca <jfonseca@vmware.com>2016-05-10 03:25:25 -0700
commit3cb010215dd03cf3e3cdcf0e8b9c4c64c7cf3b1f (patch)
tree1b87623a0ca65b68a28080d676e93149ae3c317e /wrappers
parent898d6e6da517052271a3f9828ee966b56075efe3 (diff)
gltrace: Never call glGetBufferSubData on ES.
Diffstat (limited to 'wrappers')
-rw-r--r--wrappers/gltrace_arrays.cpp6
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 &params)
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);