Fix some GLSM bypasses (#2099)

This commit is contained in:
Jason Mitchell authored and GitHub committed 2026-09-14 14:22:19 -07:00
1 parent 81b82748ce
commit a07cecb879
39 files changed
+2176 -247

No files matched your search

@@ -85,11 +85,15 @@ public class BlendModeStorage {
}
public static void deferBlendModeToggle(boolean enabled) {
if (enabled == vanillaBlendEnable) return;
vanillaBlendEnable = enabled;
hasDeferredChanges = true;
}
public static void deferBlendFunc(int srcRgb, int dstRgb, int srcAlpha, int dstAlpha) {
if (vanillaBlend.getSrcRgb() == srcRgb && vanillaBlend.getDstRgb() == dstRgb && vanillaBlend.getSrcAlpha() == srcAlpha && vanillaBlend.getDstAlpha() == dstAlpha) {
return;
}
vanillaBlend.setAll(srcRgb, dstRgb, srcAlpha, dstAlpha);
hasDeferredChanges = true;
}