Skip to content

Commit dfa8ade

Browse files
committed
Merge remote-tracking branch 'origin/1.18.2' into 1.19.1
2 parents 28717dc + 22b39f8 commit dfa8ade

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)