From 09db5b352ccb213ad3dd6910156307c91729a923 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Wed, 2 Apr 2014 14:58:48 +0200 Subject: [PATCH] GL3: Bugfix --HG-- branch : opengl3 --- .../nel/src/3d/driver/opengl3/driver_opengl_pixel_program.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/nel/src/3d/driver/opengl3/driver_opengl_pixel_program.cpp b/code/nel/src/3d/driver/opengl3/driver_opengl_pixel_program.cpp index d1863464d..ad0dbb93f 100644 --- a/code/nel/src/3d/driver/opengl3/driver_opengl_pixel_program.cpp +++ b/code/nel/src/3d/driver/opengl3/driver_opengl_pixel_program.cpp @@ -222,7 +222,7 @@ void ppTexEnv(std::stringstream &ss, const CPPBuiltin &desc) case CMaterial::InterpolatePrevious: 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; } case CMaterial::InterpolateDiffuse: @@ -268,7 +268,7 @@ void ppTexEnv(std::stringstream &ss, const CPPBuiltin &desc) case CMaterial::InterpolatePrevious: 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; } case CMaterial::InterpolateDiffuse: