fix: LocationOverlay
This commit is contained in:
parent
be03c58402
commit
bc28e0ed11
@ -1 +1 @@
|
||||
Subproject commit b611bab2c1c8c8bb8b468111c7d85c983454459a
|
||||
Subproject commit ca6e2ed669fb88cb10e7dcc4f2b4184be2b3a236
|
@ -318,7 +318,7 @@ public class MapRenderer {
|
||||
|
||||
mNewSurface = false;
|
||||
|
||||
// upload quad indices used by Texture- and LineTexRenderer
|
||||
/** initialize quad indices used by Texture- and LineTexRenderer */
|
||||
int[] vboIds = GLUtils.glGenBuffers(2);
|
||||
|
||||
mQuadIndicesID = vboIds[0];
|
||||
@ -343,9 +343,8 @@ public class MapRenderer {
|
||||
indices.length * 2, buf, GL20.GL_STATIC_DRAW);
|
||||
GL.glBindBuffer(GL20.GL_ELEMENT_ARRAY_BUFFER, 0);
|
||||
|
||||
// initialize default quad
|
||||
FloatBuffer floatBuffer = MapRenderer.getFloatBuffer(indices.length);
|
||||
|
||||
/** initialize default quad */
|
||||
FloatBuffer floatBuffer = MapRenderer.getFloatBuffer(8);
|
||||
float[] quad = new float[] { -1, -1, -1, 1, 1, -1, 1, 1 };
|
||||
floatBuffer.put(quad);
|
||||
floatBuffer.flip();
|
||||
@ -391,7 +390,7 @@ public class MapRenderer {
|
||||
*/
|
||||
public static void bindQuadVertexVBO(int location, boolean bind) {
|
||||
GL.glBindBuffer(GL20.GL_ARRAY_BUFFER, mQuadVerticesID);
|
||||
if (location > 0)
|
||||
if (location >= 0)
|
||||
GL.glVertexAttribPointer(location, 2, GL20.GL_FLOAT, false, 0, 0);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user