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
|
@ -197,8 +197,7 @@ osg::ref_ptr<osg::Node> ChunkManager::createChunk(float chunkSize, const osg::Ve
|
|||
bool useCompositeMap = chunkSize >= mCompositeMapLevel;
|
||||
unsigned int numUvSets = useCompositeMap ? 1 : 2;
|
||||
|
||||
for (unsigned int i=0; i<numUvSets; ++i)
|
||||
geometry->setTexCoordArray(i, mBufferCache.getUVBuffer(numVerts));
|
||||
geometry->setTexCoordArrayList(osg::Geometry::ArrayList(numUvSets, mBufferCache.getUVBuffer(numVerts)));
|
||||
|
||||
geometry->createClusterCullingCallback();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue