소스 검색

Merge pull request #1119 from Lopuska/patch-18

OpenGL fix - fixed a crash when you activate Alpha Threshold checkbox wi...
Luis Anton Rebollo 10 년 전
부모
커밋
ca382f56a6
1개의 변경된 파일2개의 추가작업 그리고 5개의 파일을 삭제
  1. 2 5
      Engine/source/shaderGen/GLSL/shaderFeatureGLSL.cpp

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

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