Skip to content

Commit 22b39f8

Browse files
committed
Fix up GlStateManager bindings too
1 parent 851c78f commit 22b39f8

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)