mirror of
https://github.com/MobileGL-Dev/MobileGlues.git
synced 2025-09-24 03:31:43 -04:00
[Fix] (drawing): crash when calling glMultiDrawElements
This commit is contained in:
parent
f3e9fb7eb3
commit
fbb96f07ea
@ -65,7 +65,7 @@ void prepare_indirect_buffer(const GLsizei *counts, GLenum type, const void *con
|
||||
pcmds[i].firstIndex = static_cast<GLuint>(byteOffset / elementSize);
|
||||
pcmds[i].count = counts[i];
|
||||
pcmds[i].instanceCount = 1;
|
||||
pcmds[i].baseVertex = basevertex[i];
|
||||
pcmds[i].baseVertex = basevertex ? basevertex[i] : 0;
|
||||
pcmds[i].reservedMustBeZero = 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user