GL3: Bugfix

--HG--
branch : opengl3
hg/feature/opengl3
kaetemi 11 years ago
parent 007d8877b8
commit 09db5b352c

@ -222,7 +222,7 @@ void ppTexEnv(std::stringstream &ss, const CPPBuiltin &desc)
case CMaterial::InterpolatePrevious: case CMaterial::InterpolatePrevious:
if (stage > 0) if (stage > 0)
{ {
ss << "float texop" << stage << "rgbAs = texop" << stage << ".a;" << std::endl; ss << "float texop" << stage << "rgbAs = texop" << (stage - 1) << ".a;" << std::endl;
break; break;
} }
case CMaterial::InterpolateDiffuse: case CMaterial::InterpolateDiffuse:
@ -268,7 +268,7 @@ void ppTexEnv(std::stringstream &ss, const CPPBuiltin &desc)
case CMaterial::InterpolatePrevious: case CMaterial::InterpolatePrevious:
if (stage > 0) if (stage > 0)
{ {
ss << "float texop" << stage << "alphaAs = texop" << stage << ".a;" << std::endl; ss << "float texop" << stage << "alphaAs = texop" << (stage - 1) << ".a;" << std::endl;
break; break;
} }
case CMaterial::InterpolateDiffuse: case CMaterial::InterpolateDiffuse:

Loading…
Cancel
Save