Fix crash in COGLES1Driver (#128)

This commit is contained in:
savilli 2022-08-22 19:12:40 +02:00 committed by GitHub
parent ff645cc876
commit f0766c845f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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)