mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
profiling
Signed-off-by: Bret Curtis <psi29a@gmail.com>
This commit is contained in:
parent
daa2761c2d
commit
26ab176389
13 changed files with 78 additions and 95 deletions
|
@ -600,7 +600,7 @@ bool needvbo(const osg::Geometry* geom)
|
|||
|
||||
osg::Array* cloneArray(osg::Array* array, osg::VertexBufferObject*& vbo, const osg::Geometry* geom)
|
||||
{
|
||||
array = osg::clone(array, osg::CopyOp::DEEP_COPY_ALL);
|
||||
array = static_cast<osg::Array*>(array->clone(osg::CopyOp::DEEP_COPY_ALL));
|
||||
if (!vbo && needvbo(geom))
|
||||
vbo = new osg::VertexBufferObject;
|
||||
if (vbo)
|
||||
|
@ -1135,7 +1135,7 @@ osg::PrimitiveSet* clonePrimitive(osg::PrimitiveSet* ps, osg::ElementBufferObjec
|
|||
{
|
||||
if (ps->referenceCount() <= 1)
|
||||
return ps;
|
||||
ps = osg::clone(ps, osg::CopyOp::DEEP_COPY_ALL);
|
||||
ps = static_cast<osg::PrimitiveSet*>(ps->clone(osg::CopyOp::DEEP_COPY_ALL));
|
||||
|
||||
osg::DrawElements* drawElements = ps->getDrawElements();
|
||||
if (!drawElements) return ps;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue