Set the MorphGeometry vertex buffer object usage to GL_DYNAMIC_DRAW

move
scrawl 9 years ago
parent 4eb090a8d0
commit aae43dbff5

@ -1103,6 +1103,8 @@ namespace NifOsg
morphGeom->setUpdateCallback(NULL);
morphGeom->setCullCallback(new UpdateMorphGeometry);
morphGeom->setUseVertexBufferObjects(true);
morphGeom->getOrCreateVertexBufferObject()->setUsage(GL_DYNAMIC_DRAW_ARB);
triShapeToGeometry(triShape, morphGeom, parentNode, composite, boundTextures, animflags);

Loading…
Cancel
Save