From 31cc26909df25f0f5da5b78f72e8b543b94f72ad Mon Sep 17 00:00:00 2001 From: James Date: Tue, 22 Nov 2022 19:08:48 -0500 Subject: [PATCH] Remove unnecessary glEnable (#7036) --- .../src/com/badlogic/gdx/tests/IndexBufferObjectShaderTest.java | 1 - tests/gdx-tests/src/com/badlogic/gdx/tests/MipMapTest.java | 1 - 2 files changed, 2 deletions(-) diff --git a/tests/gdx-tests/src/com/badlogic/gdx/tests/IndexBufferObjectShaderTest.java b/tests/gdx-tests/src/com/badlogic/gdx/tests/IndexBufferObjectShaderTest.java index a0050f31dbd..850acc13bc3 100644 --- a/tests/gdx-tests/src/com/badlogic/gdx/tests/IndexBufferObjectShaderTest.java +++ b/tests/gdx-tests/src/com/badlogic/gdx/tests/IndexBufferObjectShaderTest.java @@ -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(); diff --git a/tests/gdx-tests/src/com/badlogic/gdx/tests/MipMapTest.java b/tests/gdx-tests/src/com/badlogic/gdx/tests/MipMapTest.java index ea25cc747ad..e89b4bacc35 100644 --- a/tests/gdx-tests/src/com/badlogic/gdx/tests/MipMapTest.java +++ b/tests/gdx-tests/src/com/badlogic/gdx/tests/MipMapTest.java @@ -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();