Merge pull request #703 from 'Azaezel/dontCloneDynamicCubemaps'

This commit is contained in:
Daniel Buckmaster 2014-10-14 13:53:17 +11:00
commit 7ac8e3dd6f

View file

@ -328,6 +328,7 @@ void ProcessedShaderMaterial::_determineFeatures( U32 stageNum,
if ( features.hasFeature( MFT_UseInstancing ) &&
mMaxStages == 1 &&
!mMaterial->mGlow[0] &&
!mMaterial->mDynamicCubemap &&
shaderVersion >= 3.0f )
fd.features.addFeature( MFT_UseInstancing );