mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-14 01:19:59 +00:00
fix crash when hardware occlusion queries unsupporetd
This commit is contained in:
parent
5f2a674d93
commit
d4a2bdfa3d
@ -746,6 +746,7 @@ void SkyManager::setGlare(const float glare)
|
||||
|
||||
Vector3 SkyManager::getRealSunPos()
|
||||
{
|
||||
if (!mCreated) return Vector3(0,0,0);
|
||||
return mSun->getNode()->_getDerivedPosition();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user