Update shaderFeatureGLSL.cpp

fix compile shader
This commit is contained in:
Anis 2014-11-27 19:07:01 +01:00 committed by LuisAntonRebollo
parent dd08fd2e7d
commit 2582670925

View file

@ -2398,7 +2398,7 @@ void RenderTargetZeroGLSL::processPix( Vector<ShaderComponent*> &componentList,
{
// Do not actually assign zero, but instead a number so close to zero it may as well be zero.
// This will prevent a divide by zero causing an FP special on float render targets
output = new GenOp( " @;\r\n", assignColor( new GenOp( "0.00001" ), Material::None, NULL, mOutputTargetMask ) );
output = new GenOp( " @;\r\n", assignColor( new GenOp( "vec4(0.00001)" ), Material::None, NULL, mOutputTargetMask ) );
}