Skip to content

Commit aa18b45

Browse files
committed
Merge remote-tracking branch 'origin/1.19.3' into 1.19.3
2 parents 4fa8798 + 4fc60c1 commit aa18b45

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/net/coderbot/iris/gl/IrisRenderSystem.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,9 @@ public void copyTexSubImage2D(int destTexture, int target, int i, int i1, int i2
375375
@Override
376376
public void bindTextureToUnit(int unit, int texture) {
377377
ARBDirectStateAccess.glBindTextureUnit(unit, texture);
378+
379+
// Manually fix GLStateManager bindings...
380+
GlStateManagerAccessor.getTEXTURES()[unit].binding = texture;
378381
}
379382

380383
@Override

0 commit comments

Comments
 (0)