Fixed postprocess shaders with 2 or more textures

This commit is contained in:
usernameak 2019-03-25 21:40:41 +02:00 committed by Christoph Oelckers
parent 6c91d15b0a
commit 95bcc46acc

View file

@ -221,7 +221,7 @@ void PostProcessShaderInstance::BindTextures()
{ {
glUniform1i(location, textureUnit); glUniform1i(location, textureUnit);
glActiveTexture(GL_TEXTURE0 + 1); glActiveTexture(GL_TEXTURE0 + textureUnit);
auto it = mTextureHandles.find(tex); auto it = mTextureHandles.find(tex);
if (it == mTextureHandles.end()) if (it == mTextureHandles.end())
{ {