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

@ -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");