inline OpenGL constants to lwjgl GLxx
This commit is contained in:
parent
a891ab4d3a
commit
783adb350b
20 changed files with 183 additions and 495 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue