die
This commit is contained in:
parent
a1d1e28f3a
commit
c8dddcdd1f
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
Binary file not shown.
77482
javascript/classes.js
77482
javascript/classes.js
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -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_) {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user