From f8016bef86910830da3c9fb65c5e7e71009ec8c3 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 24 Oct 2014 11:52:45 +0200 Subject: [PATCH] - fixed: voxels didn't set their index count. --- src/gl/models/gl_voxels.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gl/models/gl_voxels.cpp b/src/gl/models/gl_voxels.cpp index c3ef4cd27e..62377c681e 100644 --- a/src/gl/models/gl_voxels.cpp +++ b/src/gl/models/gl_voxels.cpp @@ -387,6 +387,7 @@ void FVoxelModel::BuildVertexBuffer() mVBuf->UnlockVertexBuffer(); mVBuf->UnlockIndexBuffer(); + mNumIndices = mIndices.Size(); // delete our temporary buffers mVertices.Clear();