diff --git a/src/rendering/gl/shaders/gl_postprocessshader.cpp b/src/rendering/gl/shaders/gl_postprocessshader.cpp index 0e87275e00..09a23dbec1 100644 --- a/src/rendering/gl/shaders/gl_postprocessshader.cpp +++ b/src/rendering/gl/shaders/gl_postprocessshader.cpp @@ -221,7 +221,7 @@ void PostProcessShaderInstance::BindTextures() { glUniform1i(location, textureUnit); - glActiveTexture(GL_TEXTURE0 + 1); + glActiveTexture(GL_TEXTURE0 + textureUnit); auto it = mTextureHandles.find(tex); if (it == mTextureHandles.end()) {