bugfix #13618 - 2d filters + GLSL python scripts

This commit is contained in:
Hamed Zaghaghi 2008-06-04 02:54:42 +00:00
parent 772d241582
commit d565e8a02f

@ -166,6 +166,9 @@ void RAS_2DFilterManager::StartShaderProgram(unsigned int shaderprogram)
GLint uniformLoc;
bgl::blUseProgramObjectARB(shaderprogram);
uniformLoc = bgl::blGetUniformLocationARB(shaderprogram, "bgl_RenderedTexture");
glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_2D, texname);
if (uniformLoc != -1)
{
bgl::blUniform1iARB(uniformLoc, 0);