mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-27 03:35:27 +00:00
Do not use display lists for instanced meshes
This commit is contained in:
parent
a09f03c850
commit
859cd0fd0c
@ -95,6 +95,9 @@ namespace MWRender
|
|||||||
(*rotations)[i] = mInstances[i].mPos.asRotationVec3();
|
(*rotations)[i] = mInstances[i].mPos.asRotationVec3();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Display lists do not support instancing in OSG 3.4
|
||||||
|
geom.setUseDisplayList(false);
|
||||||
|
|
||||||
geom.setVertexAttribArray(6, transforms.get(), osg::Array::BIND_PER_VERTEX);
|
geom.setVertexAttribArray(6, transforms.get(), osg::Array::BIND_PER_VERTEX);
|
||||||
geom.setVertexAttribArray(7, rotations.get(), osg::Array::BIND_PER_VERTEX);
|
geom.setVertexAttribArray(7, rotations.get(), osg::Array::BIND_PER_VERTEX);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user