mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Avoid OSG setting array binding from multiple threads
This commit is contained in:
parent
7b095e8701
commit
eb80c997b8
2 changed files with 2 additions and 3 deletions
|
@ -186,7 +186,7 @@ namespace Terrain
|
|||
|
||||
int vertexCount = numVerts * numVerts;
|
||||
|
||||
osg::ref_ptr<osg::Vec2Array> uvs (new osg::Vec2Array);
|
||||
osg::ref_ptr<osg::Vec2Array> uvs (new osg::Vec2Array(osg::Array::BIND_PER_VERTEX));
|
||||
uvs->reserve(vertexCount);
|
||||
|
||||
for (unsigned int col = 0; col < numVerts; ++col)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue