GLState: State DISABLED = -1 (readability).
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user