mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-19 19:53:53 +00:00
Do not use display lists for instanced meshes
This commit is contained in:
parent
a09f03c850
commit
859cd0fd0c
1 changed files with 3 additions and 0 deletions
|
@ -95,6 +95,9 @@ namespace MWRender
|
|||
(*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(7, rotations.get(), osg::Array::BIND_PER_VERTEX);
|
||||
|
||||
|
|
Loading…
Reference in a new issue