]> git.lizzy.rs Git - irrlicht.git/commitdiff
Fix crash in COGLES1Driver (#128)
authorsavilli <78875209+savilli@users.noreply.github.com>
Mon, 22 Aug 2022 17:12:40 +0000 (19:12 +0200)
committerGitHub <noreply@github.com>
Mon, 22 Aug 2022 17:12:40 +0000 (19:12 +0200)
source/Irrlicht/COGLESDriver.cpp

index 1c367ed0bd3eb2b8b04f420d00d9d77ca9927e44..fcd0a7722304b3ad46ea4d652bdceb8047235039 100644 (file)
@@ -270,6 +270,7 @@ bool COGLES1Driver::updateVertexHardwareBuffer(SHWBufferLink_opengl *HWBuffer)
 \r
        //buffer vertex data, and convert colours...\r
        core::array<c8> buffer(vertexSize * vertexCount);\r
+       buffer.set_used(vertexSize * vertexCount);\r
        memcpy(buffer.pointer(), vertices, vertexSize * vertexCount);\r
 \r
        // in order to convert the colors into opengl format (RGBA)\r