Skip to content

Commit

Permalink
Forgot to update state tracker in ARB_multi_bind texture binding impl.
Browse files Browse the repository at this point in the history
Would cause random weird issues with texture configuration/upload if
ARB_multi_bind is available and EXT_direct_state_access is not. Probably
not an issue, since EXT_direct_state_access is probably available on all
drivers which support also ARB_multi_bind.
  • Loading branch information
mosra committed Apr 4, 2014
1 parent ecf7bfa commit f0df35a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Magnum/AbstractTexture.cpp
Expand Up @@ -137,6 +137,8 @@ void AbstractTexture::bindImplementationDefault(GLint textureUnit) {

#ifndef MAGNUM_TARGET_GLES
void AbstractTexture::bindImplementationMulti(GLint textureUnit) {
/* Bind the texture to the unit, update state tracker */
Context::current()->state().texture->bindings[textureUnit] = _id;
glBindTextures(textureUnit, 1, &_id);
}

Expand Down

0 comments on commit f0df35a

Please sign in to comment.