aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsavilli <78875209+savilli@users.noreply.github.com>2022-08-22 19:12:40 +0200
committerGitHub <noreply@github.com>2022-08-22 19:12:40 +0200
commitf0766c845f85c2f467843f20cf811c62cd2402c7 (patch)
treeee69b17cfb9597d390463b4362b985087e19a14a
parentff645cc8764ab3fc79f0e67677a328ba36c35087 (diff)
downloadirrlicht-f0766c845f85c2f467843f20cf811c62cd2402c7.tar.xz
Fix crash in COGLES1Driver (#128)
-rw-r--r--source/Irrlicht/COGLESDriver.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/Irrlicht/COGLESDriver.cpp b/source/Irrlicht/COGLESDriver.cpp
index 1c367ed..fcd0a77 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<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)