Skip to content

Commit

Permalink
Fixed postprocess shaders with 2 or more textures
Browse files Browse the repository at this point in the history
  • Loading branch information
usernameak authored and coelckers committed Mar 25, 2019
1 parent 6c91d15 commit 95bcc46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rendering/gl/shaders/gl_postprocessshader.cpp
Expand Up @@ -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())
{
Expand Down

0 comments on commit 95bcc46

Please sign in to comment.