more gfx shadowvar cleanups

This commit is contained in:
Azaezel 2018-03-13 21:25:45 -05:00
parent 577e16ec10
commit 68da3176c9
4 changed files with 9 additions and 9 deletions

View file

@ -350,7 +350,7 @@ void DeferredBumpFeatGLSL::processPix( Vector<ShaderComponent*> &componentList,
if (fd.features.hasFeature(MFT_DetailNormalMap))
{
Var *bumpMap = (Var*)LangElement::find("detailBumpMap");
bumpMap = (Var*)LangElement::find("detailBumpMap");
if (!bumpMap) {
bumpMap = new Var;
bumpMap->setType("sampler2D");

View file

@ -367,7 +367,7 @@ void DeferredBumpFeatHLSL::processPix( Vector<ShaderComponent*> &componentList,
if ( fd.features.hasFeature( MFT_DetailNormalMap ) )
{
Var *bumpMap = (Var*)LangElement::find( "detailBumpMap" );
bumpMap = (Var*)LangElement::find( "detailBumpMap" );
if ( !bumpMap )
{
bumpMap = new Var;
@ -378,7 +378,7 @@ void DeferredBumpFeatHLSL::processPix( Vector<ShaderComponent*> &componentList,
bumpMap->constNum = Var::getTexUnitNum();
}
Var* bumpMapTex = (Var*)LangElement::find("detailBumpMap");
bumpMapTex = (Var*)LangElement::find("detailBumpMap");
if (!bumpMapTex)
{
bumpMap->setType("SamplerState");

View file

@ -254,7 +254,7 @@ void PSSMLightShadowMap::_render( RenderPassManager* renderPass,
for (U32 i = 0; i < mNumSplits; i++)
{
GFXTransformSaver saver;
GFXTransformSaver splitSaver;
// Calculate a sub-frustum
Frustum subFrustum(fullFrustum);