Bug 743247. Ensure we don't have an array buffer bound when drawing PluginLayer. r=kats

This fixes the same problem in the newly added PluginLayer
This commit is contained in:
Jeff Muizelaar
2012-04-28 00:55:16 -04:00
parent 897cb2ae19
commit c47b112d84

View File

@@ -247,6 +247,9 @@ public class PluginLayer extends TileLayer
coordBuffer.position(0);
coordBuffer.put(coords);
// Unbind any the current array buffer so we can use client side buffers
GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, 0);
// Vertex coordinates are x,y,z starting at position 0 into the buffer.
coordBuffer.position(0);
GLES20.glVertexAttribPointer(positionHandle, 3, GLES20.GL_FLOAT, false, 20, coordBuffer);
@@ -317,4 +320,4 @@ public class PluginLayer extends TileLayer
mLayer.showView();
}
}
}
}