소스 검색

fix to avoid a missing sampler name declaration

Anis 11 년 전
부모
커밋
4ccf89ba8e
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  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;
 }