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

@@ -105,7 +105,7 @@ public class CustomRenderer extends LayerRenderer {
//mVertices.position(2);
//GL.vertexAttribPointer(hVertexPosition, 2, GL20.FLOAT, false, 4, mVertices);
GLState.enableVertexArrays(hVertexPosition, -1);
GLState.enableVertexArrays(hVertexPosition, GLState.DISABLED);
/* apply view and projection matrices */
// set mvp (tmp) matrix relative to mMapPosition

View File

@@ -119,7 +119,7 @@ public class HexagonRenderTest extends GdxMapApp {
// set VBO vertex layout
gl.vertexAttribPointer(hVertexPosition, 2, GL.FLOAT, false, 0, 0);
GLState.enableVertexArrays(hVertexPosition, -1);
GLState.enableVertexArrays(hVertexPosition, GLState.DISABLED);
/* apply view and projection matrices */
// set mvp (tmp) matrix relative to mMapPosition