From f0766c845f85c2f467843f20cf811c62cd2402c7 Mon Sep 17 00:00:00 2001 From: savilli <78875209+savilli@users.noreply.github.com> Date: Mon, 22 Aug 2022 19:12:40 +0200 Subject: [PATCH] Fix crash in COGLES1Driver (#128) --- source/Irrlicht/COGLESDriver.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/Irrlicht/COGLESDriver.cpp b/source/Irrlicht/COGLESDriver.cpp index 1c367ed0..fcd0a772 100644 --- a/source/Irrlicht/COGLESDriver.cpp +++ b/source/Irrlicht/COGLESDriver.cpp @@ -270,6 +270,7 @@ bool COGLES1Driver::updateVertexHardwareBuffer(SHWBufferLink_opengl *HWBuffer) //buffer vertex data, and convert colours... core::array buffer(vertexSize * vertexCount); + buffer.set_used(vertexSize * vertexCount); memcpy(buffer.pointer(), vertices, vertexSize * vertexCount); // in order to convert the colors into opengl format (RGBA)