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
1 changed files with 1 additions and 1 deletions

View File

@ -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())
{