From 95bcc46acc5a601dc3a593aa39fbe97c011b73fb Mon Sep 17 00:00:00 2001 From: usernameak Date: Mon, 25 Mar 2019 21:40:41 +0200 Subject: [PATCH] Fixed postprocess shaders with 2 or more textures --- src/rendering/gl/shaders/gl_postprocessshader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) {