IVideoDriver::getOcclusionQueryResult works now with const node pointer.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6401 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
@@ -1247,7 +1247,7 @@ bool CSceneManager::isCulled(const ISceneNode* node) const
|
||||
// has occlusion query information
|
||||
if (node->getAutomaticCulling() & scene::EAC_OCC_QUERY)
|
||||
{
|
||||
result = (Driver->getOcclusionQueryResult(const_cast<ISceneNode*>(node))==0);
|
||||
result = (Driver->getOcclusionQueryResult(node)==0);
|
||||
}
|
||||
|
||||
// can be seen by a bounding box ?
|
||||
|
Reference in New Issue
Block a user