Fixed postprocess shaders with 2 or more textures

This commit is contained in:
usernameak 2019-03-25 21:40:41 +02:00 committed by drfrag
parent 4aece219a7
commit c6778628a3

View file

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