mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 20:49:56 +00:00
fix crash when hardware occlusion queries unsupporetd
This commit is contained in:
parent
5f2a674d93
commit
d4a2bdfa3d
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue