fix shaders
This commit is contained in:
parent
a4597b437b
commit
3559a9c78b
13 changed files with 315 additions and 357 deletions
|
@ -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.");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue