Fix emissive texture Z-fighting with shaders, Fix crashing without Iris

This commit is contained in:
Motschen
2022-01-02 20:35:59 +01:00
parent 8e86674dff
commit c0abca50f9
5 changed files with 48 additions and 32 deletions

View File

@@ -70,7 +70,7 @@ public abstract class MixinSplashScreen extends Overlay {
GlStateManager._clear(16384, MinecraftClient.IS_SYSTEM_MAC);
}
}
@Inject(method = "render", at = @At(value = "INVOKE", target = "Lcom/mojang/blaze3d/systems/RenderSystem;enableBlend()V", shift = At.Shift.AFTER))
@Inject(method = "render", at = @At(value = "INVOKE", target = "Lcom/mojang/blaze3d/systems/RenderSystem;enableBlend()V", shift = At.Shift.AFTER), remap = false)
private void disableBlend(MatrixStack matrices, int mouseX, int mouseY, float delta, CallbackInfo ci) {
if (PuzzleConfig.disableSplashScreenBlend) RenderSystem.disableBlend();
}