Revision: 1442
http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=1442&view=rev
Author: rorthomas
Date: 2010-07-13 21:56:14 +0000 (Tue, 13 Jul 2010)
Log Message:
-----------
fixed yet another compilation problem
Modified Paths:
--------------
trunk/source/main/ShadowManager.cpp
Modified: trunk/source/main/ShadowManager.cpp
===================================================================
--- trunk/source/main/ShadowManager.cpp 2010-07-13 21:49:07 UTC (rev 1441)
+++ trunk/source/main/ShadowManager.cpp 2010-07-13 21:56:14 UTC (rev 1442)
@@ -85,9 +85,10 @@
{
#if OGRE_VERSION>0x010602
+ TerrainMaterialGeneratorA::SM2Profile *matProfile = 0;
if(TerrainGlobalOptions::getSingletonPtr())
{
- TerrainMaterialGeneratorA::SM2Profile* matProfile =
static_cast<TerrainMaterialGeneratorA::SM2Profile*>(TerrainGlobalOptions::getSingleton().getDefaultMaterialGenerator()->getActiveProfile());
+ matProfile =
static_cast<TerrainMaterialGeneratorA::SM2Profile*>(TerrainGlobalOptions::getSingleton().getDefaultMaterialGenerator()->getActiveProfile());
matProfile->setReceiveDynamicShadowsEnabled(true);
matProfile->setReceiveDynamicShadowsLowLod(false);
}
@@ -144,8 +145,11 @@
mSceneMgr->setShadowTextureCasterMaterial(StringUtil::BLANK);
}
- matProfile->setReceiveDynamicShadowsDepth(depthShadows);
-
matProfile->setReceiveDynamicShadowsPSSM(static_cast<PSSMShadowCameraSetup*>(mPSSMSetup.get()));
+ if(matProfile)
+ {
+ matProfile->setReceiveDynamicShadowsDepth(depthShadows);
+
matProfile->setReceiveDynamicShadowsPSSM(static_cast<PSSMShadowCameraSetup*>(mPSSMSetup.get()));
+ }
#else
showError("Parallel-split Shadow Maps as shadow technique is
only available when you build with Ogre 1.6 support.", "PSSM error");
exit(1);
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