forked from Mirrorlandia_minetest/irrlicht
Fix crash in COGLES1Driver (#128)
This commit is contained in:
parent
ff645cc876
commit
f0766c845f
@ -270,6 +270,7 @@ bool COGLES1Driver::updateVertexHardwareBuffer(SHWBufferLink_opengl *HWBuffer)
|
||||
|
||||
//buffer vertex data, and convert colours...
|
||||
core::array<c8> buffer(vertexSize * vertexCount);
|
||||
buffer.set_used(vertexSize * vertexCount);
|
||||
memcpy(buffer.pointer(), vertices, vertexSize * vertexCount);
|
||||
|
||||
// in order to convert the colors into opengl format (RGBA)
|
||||
|
Loading…
Reference in New Issue
Block a user