1
0
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:
scrawl 2012-04-02 20:46:42 +02:00
parent 5f2a674d93
commit d4a2bdfa3d

View File

@ -746,6 +746,7 @@ void SkyManager::setGlare(const float glare)
Vector3 SkyManager::getRealSunPos()
{
if (!mCreated) return Vector3(0,0,0);
return mSun->getNode()->_getDerivedPosition();
}