OcclusionQueryNode: make all usages of 'updateDefaultQueryGeometry' thread safe
This commit is contained in:
parent
ddb72691bc
commit
995e849e8a
@ -759,8 +759,6 @@ void OcclusionQueryNode::setQueryGeometryInternal( QueryGeometry* queryGeom,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
OpenThreads::ScopedLock<OpenThreads::Mutex> lock( _computeBoundMutex ) ;
|
|
||||||
|
|
||||||
_queryGeometryState = state;
|
_queryGeometryState = state;
|
||||||
|
|
||||||
_queryGeode->removeDrawables(0, _queryGeode->getNumDrawables());
|
_queryGeode->removeDrawables(0, _queryGeode->getNumDrawables());
|
||||||
@ -836,6 +834,8 @@ void OcclusionQueryNode::discardDeletedQueryObjects( unsigned int contextID )
|
|||||||
|
|
||||||
void OcclusionQueryNode::setQueryGeometry( QueryGeometry* geom )
|
void OcclusionQueryNode::setQueryGeometry( QueryGeometry* geom )
|
||||||
{
|
{
|
||||||
|
OpenThreads::ScopedLock<OpenThreads::Mutex> lock( _computeBoundMutex ) ;
|
||||||
|
|
||||||
if (geom)
|
if (geom)
|
||||||
{
|
{
|
||||||
setQueryGeometryInternal( geom, geom, USER_DEFINED );
|
setQueryGeometryInternal( geom, geom, USER_DEFINED );
|
||||||
|
Loading…
Reference in New Issue
Block a user