Преглед изворни кода

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;
 }