Fix red and blue being swapped

This commit is contained in:
ayunami2000 2022-04-30 09:16:17 -04:00
parent ae6a8e8653
commit ea8f631d15

View File

@ -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);
}