1
0

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:
cutealien
2022-05-15 11:51:42 +00:00
parent ea0f2555ed
commit f9e5ef76bd
10 changed files with 20 additions and 21 deletions

View File

@@ -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 ?