1
0
Fork 0

fix shaders

This commit is contained in:
Sen 2025-09-01 10:56:29 +02:00
parent a4597b437b
commit 3559a9c78b
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
13 changed files with 315 additions and 357 deletions

View file

@ -62,7 +62,7 @@ import client.network.DummyConnection;
import client.renderer.Drawing;
import client.renderer.EffectRenderer;
import client.renderer.Renderer;
import client.renderer.Shader;
import client.renderer.ShaderContext;
import client.renderer.GlState;
import client.renderer.ItemRenderer;
import client.renderer.blockmodel.ModelManager;
@ -850,7 +850,7 @@ public class Client implements IThreadListener {
Font.loadFonts();
Font.select(this.font);
if(this.shaders)
Shader.loadShaders();
ShaderContext.loadShaders();
this.textureManager.onReload();
this.modelManager.onReload();
this.renderItem.onReload();
@ -2391,7 +2391,7 @@ public class Client implements IThreadListener {
GlState.blendFunc(GL15.GL_SRC_ALPHA, GL15.GL_ONE_MINUS_SRC_ALPHA);
this.initConsole();
if(this.shaders)
Shader.loadShaders();
ShaderContext.loadShaders();
this.startSound(true);
this.vidMode = Window.getDisplayMode();
if(this.vidMode != null && (this.vidMode.width() < MIN_WIDTH || this.vidMode.height() < MIN_HEIGHT))
@ -2462,7 +2462,7 @@ public class Client implements IThreadListener {
this.save();
Font.unloadFonts();
if(this.shaders)
Shader.unloadShaders();
ShaderContext.unloadShaders();
Window.destroyWindow();
Log.SYSTEM.info("Beendet.");
}