Commit ff1f3c80 authored by Matthias Möller's avatar Matthias Möller
Browse files

update vbo size in flat shade mode.

fix memory overwrite, if mesh has more data than before the update

refs #1987

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@18120 383ad7c9-94d9-4d36-a494-682f7c89f535
parent a67e2ca4
......@@ -733,8 +733,8 @@ DrawMeshT<Mesh>::createVBO()
{
// use per face normals
if (!verticesTmp_)
verticesTmp_ = new Vertex[numVerts_];
delete [] verticesTmp_;
verticesTmp_ = new Vertex[numVerts_];
memcpy(verticesTmp_, vertices_, sizeof(Vertex) * numVerts_);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment