Skip to content

Commit

Permalink
Decal Material binds to texture unit 0, closes #4024
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-Ski committed Apr 20, 2016
1 parent f7d9208 commit de6e902
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class DecalMaterial {

/** Binds the material's texture to the OpenGL context and changes the glBlendFunc to the values used by it. */
public void set () {
textureRegion.getTexture().bind();
textureRegion.getTexture().bind(0);
if (!isOpaque()) {
Gdx.gl.glBlendFunc(srcBlendFactor, dstBlendFactor);
}
Expand Down

0 comments on commit de6e902

Please sign in to comment.