GLState: State DISABLED = -1 (readability).

This commit is contained in:
Gustl22
2018-08-23 22:46:40 +02:00
parent f07de4c910
commit 63cd462109
17 changed files with 41 additions and 31 deletions

View File

@@ -104,9 +104,9 @@ public class GdxModelRenderer extends LayerRenderer {
// set state that is expected after modelBatch.end();
// modelBatch keeps track of its own state
GLState.enableVertexArrays(-1, -1);
GLState.bindTex2D(-1);
GLState.useProgram(-1);
GLState.enableVertexArrays(GLState.DISABLED, GLState.DISABLED);
GLState.bindTex2D(GLState.DISABLED);
GLState.useProgram(GLState.DISABLED);
GLState.test(false, false);
GLState.blend(false);