mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-20 04:19:40 +00:00
Fix some GLSM bypasses (#2099)
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user