This commit is contained in:
PeytonPlayz595 2024-04-11 19:13:40 -04:00
parent a1d1e28f3a
commit c8dddcdd1f
7 changed files with 116228 additions and 116247 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -105,15 +105,13 @@ public class TextureUtils {
public static void applyAnisotropicLevel() {
float f1 = (float)Config.getAnisotropicFilterLevel();
//if(PlatformRuntime.getPlatformOS() == EnumPlatformOS.WINDOWS && PlatformRuntime.isDebugRuntime()) {
//f1 = Math.min(f1, 1.0f);
//} else {
if(PlatformRuntime.isDebugRuntime()) {
f1 = Math.min(f1, 1.0f);
} else {
f1 = Math.min(f1, 16.0f);
//}
EaglercraftGPU.glTexParameteri(RealOpenGLEnums.GL_TEXTURE_2D, '\u813d', (int) f1);
EaglercraftGPU.glTexParameterf(RealOpenGLEnums.GL_TEXTURE_2D, '\u813a', 0.0F);
EaglercraftGPU.glTexParameterf(RealOpenGLEnums.GL_TEXTURE_2D, '\u813b', f1);
//EaglercraftGPU.glTexParameterf(RealOpenGLEnums.GL_TEXTURE_2D, '\u813d', f1);
}
EaglercraftGPU.glTexParameterf(RealOpenGLEnums.GL_TEXTURE_2D, RealOpenGLEnums.GL_TEXTURE_MAX_ANISOTROPY, f1);
EaglercraftGPU.glTexParameteri(RealOpenGLEnums.GL_TEXTURE_2D, RealOpenGLEnums.GL_TEXTURE_MIN_FILTER, RealOpenGLEnums.GL_NEAREST);
}
public static void bindTexture(int p_bindTexture_0_) {

View File

@ -720,8 +720,9 @@ public class Minecraft implements IThreadListener {
* Checks for an OpenGL error. If there is one, prints the error
* ID and error string.
*/
boolean shutTheFuckUp = true;
public void checkGLError(String message) {
if (this.enableGLErrorChecking) {
if (this.enableGLErrorChecking && !shutTheFuckUp) {
int i = EaglercraftGPU.glGetError();
if (i != 0) {
String s = EaglercraftGPU.gluErrorString(i);