Revision: 1441
http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=1441&view=rev
Author: rorthomas
Date: 2010-07-13 21:49:07 +0000 (Tue, 13 Jul 2010)
Log Message:
-----------
added fix for linux assert
Modified Paths:
--------------
trunk/source/main/ShadowManager.cpp
Modified: trunk/source/main/ShadowManager.cpp
===================================================================
--- trunk/source/main/ShadowManager.cpp 2010-07-13 20:52:56 UTC (rev 1440)
+++ trunk/source/main/ShadowManager.cpp 2010-07-13 21:49:07 UTC (rev 1441)
@@ -85,9 +85,12 @@
{
#if OGRE_VERSION>0x010602
- TerrainMaterialGeneratorA::SM2Profile* matProfile =
static_cast<TerrainMaterialGeneratorA::SM2Profile*>(TerrainGlobalOptions::getSingleton().getDefaultMaterialGenerator()->getActiveProfile());
- matProfile->setReceiveDynamicShadowsEnabled(true);
- matProfile->setReceiveDynamicShadowsLowLod(false);
+ if(TerrainGlobalOptions::getSingletonPtr())
+ {
+ TerrainMaterialGeneratorA::SM2Profile* matProfile =
static_cast<TerrainMaterialGeneratorA::SM2Profile*>(TerrainGlobalOptions::getSingleton().getDefaultMaterialGenerator()->getActiveProfile());
+ matProfile->setReceiveDynamicShadowsEnabled(true);
+ matProfile->setReceiveDynamicShadowsLowLod(false);
+ }
// General scene setup
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Rigsofrods-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel