未验证 提交 a6539945 编写于 作者: M MGSX 提交者: GitHub

fix invalid GL calls in FrameBufferTest (#6619)

上级 3412eeb9
......@@ -62,7 +62,6 @@ public class FrameBufferTest extends GdxTest {
Gdx.gl20.glViewport(0, 0, frameBuffer.getWidth(), frameBuffer.getHeight());
Gdx.gl20.glClearColor(0f, 1f, 0f, 1);
Gdx.gl20.glClear(GL20.GL_COLOR_BUFFER_BIT);
Gdx.gl20.glEnable(GL20.GL_TEXTURE_2D);
texture.bind();
meshShader.bind();
meshShader.setUniformi("u_texture", 0);
......@@ -73,7 +72,6 @@ public class FrameBufferTest extends GdxTest {
Gdx.gl20.glViewport(0, 0, frameBuffer.getWidth(), frameBuffer.getHeight());
Gdx.gl20.glClearColor(1f, 1f, 0f, 1);
Gdx.gl20.glClear(GL20.GL_COLOR_BUFFER_BIT | GL20.GL_STENCIL_BUFFER_BIT);
Gdx.gl20.glEnable(GL20.GL_TEXTURE_2D);
Gdx.gl20.glEnable(GL20.GL_STENCIL_TEST);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册