From aae43dbff5889b1eba6aac3c8eab8ea0a75bd31c Mon Sep 17 00:00:00 2001 From: scrawl Date: Fri, 11 Mar 2016 16:10:39 +0100 Subject: [PATCH] Set the MorphGeometry vertex buffer object usage to GL_DYNAMIC_DRAW --- components/nifosg/nifloader.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/nifosg/nifloader.cpp b/components/nifosg/nifloader.cpp index 53b9f3372..0847a368d 100644 --- a/components/nifosg/nifloader.cpp +++ b/components/nifosg/nifloader.cpp @@ -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);