diff options
author | savilli <78875209+savilli@users.noreply.github.com> | 2022-08-22 19:12:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-22 19:12:40 +0200 |
commit | f0766c845f85c2f467843f20cf811c62cd2402c7 (patch) | |
tree | ee69b17cfb9597d390463b4362b985087e19a14a | |
parent | ff645cc8764ab3fc79f0e67677a328ba36c35087 (diff) | |
download | irrlicht-f0766c845f85c2f467843f20cf811c62cd2402c7.tar.xz |
Fix crash in COGLES1Driver (#128)
-rw-r--r-- | source/Irrlicht/COGLESDriver.cpp | 1 |
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)
|