Skip to content

Commit

Permalink
Remove unnecessary glEnable (libgdx#7036)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesTKhan authored Nov 23, 2022
1 parent b6001dc commit 31cc269
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ public void render () {
Gdx.gl.glViewport(0, 0, Gdx.graphics.getBackBufferWidth(), Gdx.graphics.getBackBufferHeight());
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);

Gdx.gl.glEnable(GL20.GL_TEXTURE_2D);
shader.bind();
shader.setUniformi("u_texture", 0);
texture.bind();
Expand Down
1 change: 0 additions & 1 deletion tests/gdx-tests/src/com/badlogic/gdx/tests/MipMapTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ private void createUI () {
@Override
public void render () {
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
Gdx.gl.glEnable(GL20.GL_TEXTURE_2D);

camera.update();

Expand Down

0 comments on commit 31cc269

Please sign in to comment.