mirror of
https://github.com/Eaglercraft-Archive/Eaglercraftx-1.8.8-src.git
synced 2025-06-27 18:38:14 -05:00
Update #14 - Fixed stupid mistake in the u13 FPS boost patch
This commit is contained in:
@ -8,7 +8,7 @@ public class EaglercraftVersion {
|
||||
/// Customize these to fit your fork:
|
||||
|
||||
public static final String projectForkName = "EaglercraftX";
|
||||
public static final String projectForkVersion = "u13";
|
||||
public static final String projectForkVersion = "u14";
|
||||
public static final String projectForkVendor = "lax1dude";
|
||||
|
||||
public static final String projectForkURL = "https://gitlab.com/lax1dude/eaglercraftx-1.8";
|
||||
@ -23,7 +23,7 @@ public class EaglercraftVersion {
|
||||
public static final String projectOriginName = "EaglercraftX";
|
||||
public static final String projectOriginAuthor = "lax1dude";
|
||||
public static final String projectOriginRevision = "1.8";
|
||||
public static final String projectOriginVersion = "u13";
|
||||
public static final String projectOriginVersion = "u14";
|
||||
|
||||
public static final String projectOriginURL = "https://gitlab.com/lax1dude/eaglercraftx-1.8";
|
||||
|
||||
|
@ -59,7 +59,8 @@ public class GlStateManager {
|
||||
static int stateBlendEquation = -1;
|
||||
static int stateBlendSRC = -1;
|
||||
static int stateBlendDST = -1;
|
||||
|
||||
static boolean stateEnableOverlayFramebufferBlending = false;
|
||||
|
||||
static boolean stateAlphaTest = false;
|
||||
static float stateAlphaTestRef = 0.1f;
|
||||
|
||||
@ -336,6 +337,10 @@ public class GlStateManager {
|
||||
}
|
||||
|
||||
public static final void blendFunc(int srcFactor, int dstFactor) {
|
||||
if(stateEnableOverlayFramebufferBlending) {
|
||||
tryBlendFuncSeparate(srcFactor, dstFactor, 0, 1);
|
||||
return;
|
||||
}
|
||||
int srcBits = (srcFactor | (srcFactor << 16));
|
||||
int dstBits = (dstFactor | (dstFactor << 16));
|
||||
if(srcBits != stateBlendSRC || dstBits != stateBlendDST) {
|
||||
@ -346,6 +351,10 @@ public class GlStateManager {
|
||||
}
|
||||
|
||||
public static final void tryBlendFuncSeparate(int srcFactor, int dstFactor, int srcFactorAlpha, int dstFactorAlpha) {
|
||||
if(stateEnableOverlayFramebufferBlending) { // game overlay framebuffer in EntityRenderer.java
|
||||
srcFactorAlpha = GL_ONE;
|
||||
dstFactorAlpha = GL_ONE_MINUS_SRC_ALPHA;
|
||||
}
|
||||
int srcBits = (srcFactor | (srcFactorAlpha << 16));
|
||||
int dstBits = (dstFactor | (dstFactorAlpha << 16));
|
||||
if(srcBits != stateBlendSRC || dstBits != stateBlendDST) {
|
||||
@ -355,6 +364,14 @@ public class GlStateManager {
|
||||
}
|
||||
}
|
||||
|
||||
public static final void enableOverlayFramebufferBlending() {
|
||||
stateEnableOverlayFramebufferBlending = true;
|
||||
}
|
||||
|
||||
public static final void disableOverlayFramebufferBlending() {
|
||||
stateEnableOverlayFramebufferBlending = false;
|
||||
}
|
||||
|
||||
public static final void setShaderBlendSrc(float r, float g, float b, float a) {
|
||||
stateShaderBlendSrcColorR = r;
|
||||
stateShaderBlendSrcColorG = g;
|
||||
|
Reference in New Issue
Block a user