2
0
Эх сурвалжийг харах

Merge pull request #1119 from Lopuska/patch-18

OpenGL fix - fixed a crash when you activate Alpha Threshold checkbox wi...
Luis Anton Rebollo 10 жил өмнө
parent
commit
ca382f56a6

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