inline OpenGL constants to lwjgl GLxx

This commit is contained in:
Sen 2025-03-18 10:14:37 +01:00
parent a891ab4d3a
commit 783adb350b
20 changed files with 183 additions and 495 deletions

View file

@ -2,6 +2,8 @@ package game.gui;
import java.util.List;
import org.lwjgl.opengl.GL13;
import com.google.common.collect.Lists;
import game.Game;
@ -18,7 +20,6 @@ import game.vars.ColorVar;
import game.window.Bind;
import game.window.Button;
import game.window.Keysym;
import game.window.WCF;
public abstract class Gui {
public static final String DIRT_BACKGROUND = "textures/background.png";
@ -327,7 +328,7 @@ public abstract class Gui {
if(this.gm.fb_x != 0 && this.gm.fb_y != 0)
this.draw();
GlState.bindTexture(0);
GlState.setActiveTexture(WCF.GL_TEXTURE0);
GlState.setActiveTexture(GL13.GL_TEXTURE0);
GlState.enableTexture2D();
GlState.disableDepth();
this.drawPost();