mirror of
https://github.com/MobileGL-Dev/MobileGlues.git
synced 2025-09-22 18:53:35 -04:00
[Fix] (drawing.c): Try to use simulated glUnmapBuffer in glMultiDrawElementsBaseVertex.
Signed-off-by: BZLZHH <admin@bzlzhh.top>
This commit is contained in:
commit
b2b97eac16
@ -10,12 +10,13 @@ void glMultiDrawElementsBaseVertex( GLenum mode, GLsizei *counts, GLenum type, c
|
||||
LOG();
|
||||
glUnmapBuffer(GL_ARRAY_BUFFER);
|
||||
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