From ea8f631d15a38cb5d4cfd2979e74657370f5a6e6 Mon Sep 17 00:00:00 2001 From: ayunami2000 Date: Sat, 30 Apr 2022 09:16:17 -0400 Subject: [PATCH] Fix red and blue being swapped --- src/main/java/net/minecraft/src/MapItemRenderer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/src/MapItemRenderer.java b/src/main/java/net/minecraft/src/MapItemRenderer.java index e9ca39b..c933039 100644 --- a/src/main/java/net/minecraft/src/MapItemRenderer.java +++ b/src/main/java/net/minecraft/src/MapItemRenderer.java @@ -42,6 +42,7 @@ public class MapItemRenderer { texX2 = par3MapData.videoX2; texY2 = par3MapData.videoY2; }else if(isImageMode) { + EaglerAdapter.glEnable(EaglerAdapter.EAG_SWAP_RB); EaglerAdapter.updateImageTexture(); EaglerAdapter.bindImageTexture(); texX1 = par3MapData.videoX1; @@ -107,7 +108,7 @@ public class MapItemRenderer { EaglerAdapter.glDisable(EaglerAdapter.GL_BLEND); par2RenderEngine.resetBoundTexture(); - if(isVideoMode) { + if(isVideoMode || isImageMode) { EaglerAdapter.glDisable(EaglerAdapter.EAG_SWAP_RB); }