Forráskód Böngészése

fix to avoid a missing sampler name declaration

Anis 10 éve
szülő
commit
4ccf89ba8e
1 módosított fájl, 2 hozzáadás és 3 törlés
  1. 2 3
      Engine/source/shaderGen/GLSL/shaderFeatureGLSL.cpp

+ 2 - 3
Engine/source/shaderGen/GLSL/shaderFeatureGLSL.cpp

@@ -985,10 +985,9 @@ void DiffuseMapFeatGLSL::setTexData(   Material::StageData &stageDat,
                                        RenderPassData &passData,
                                        U32 &texIndex )
 {
-   passData.mSamplerNames[ texIndex ] = "diffuseMap";
    GFXTextureObject *tex = stageDat.getTex( MFT_DiffuseMap );
-   if ( tex )
-      passData.mTexSlot[ texIndex++ ].texObject = tex;
+   passData.mSamplerNames[ texIndex ] = "diffuseMap";
+   passData.mTexSlot[ texIndex++ ].texObject = tex;
 }