1
0
Fork 0

rendering cleanup

This commit is contained in:
Sen 2025-06-22 12:27:25 +02:00
parent 1d937b466d
commit 3ae27fc27f
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
48 changed files with 365 additions and 978 deletions

View file

@ -659,8 +659,8 @@ public class Client implements IThreadListener {
GL11.glLoadIdentity();
GL11.glMatrixMode(GL11.GL_MODELVIEW);
this.textureMap = new TextureMap();
this.textureManager.loadTexture(TextureMap.locationBlocksTexture, this.textureMap);
this.textureManager.bindTexture(TextureMap.locationBlocksTexture);
this.textureManager.loadTexture(TextureMap.BLOCKS, this.textureMap);
this.textureManager.bindTexture(TextureMap.BLOCKS);
GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MIN_FILTER, GL11.GL_NEAREST);
GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MAG_FILTER, GL11.GL_NEAREST);
this.modelManager = new ModelManager(this.textureMap);
@ -777,7 +777,7 @@ public class Client implements IThreadListener {
{
this.controller.update();
}
this.textureMap.updateAnimations();
this.textureMap.update();
if (this.open != null)
{
this.open.updateScreen();