mirror of
https://github.com/MobileGL-Dev/MobileGlues.git
synced 2025-09-26 04:32:47 -04:00
fix(drawing.c): glMultiDrawElementsBaseVertex not drawing on Mali GPU (bad impl)
This commit is contained in:
parent
1b3b04a613
commit
fcd72c680a
@ -8,12 +8,18 @@
|
||||
|
||||
void glMultiDrawElementsBaseVertex( GLenum mode, GLsizei *counts, GLenum type, const void * const *indices, GLsizei primcount, const GLint * basevertex) {
|
||||
LOG();
|
||||
|
||||
LOAD_GLES(glUnmapBuffer, GLboolean, GLenum target)
|
||||
|
||||
gles_glUnmapBuffer(GL_ARRAY_BUFFER);
|
||||
gles_glUnmapBuffer(GL_ELEMENT_ARRAY_BUFFER);
|
||||
|
||||
for (int i = 0; i < primcount; i++) {
|
||||
if (counts[i] > 0)
|
||||
glDrawElementsBaseVertex(mode,
|
||||
counts[i],
|
||||
type,
|
||||
indices[i],
|
||||
basevertex[i]);
|
||||
if (counts[i] > 0)
|
||||
glDrawElementsBaseVertex(mode,
|
||||
counts[i],
|
||||
type,
|
||||
indices[i],
|
||||
basevertex[i]);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user