fixup: MapRenderer
This commit is contained in:
parent
600bf2c105
commit
59e6240766
@ -295,7 +295,8 @@ public class MapRenderer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void onSurfaceChanged(int width, int height) {
|
public void onSurfaceChanged(int width, int height) {
|
||||||
log.debug("SurfaceChanged: " + mNewSurface + " " + width + "x" + height);
|
log.debug("onSurfaceChanged: new={}, {}x{}",
|
||||||
|
mNewSurface, width, height);
|
||||||
|
|
||||||
if (width <= 0 || height <= 0)
|
if (width <= 0 || height <= 0)
|
||||||
return;
|
return;
|
||||||
@ -392,6 +393,8 @@ public class MapRenderer {
|
|||||||
* Bind VBO for a simple quad. Handy for simple custom RenderLayers
|
* Bind VBO for a simple quad. Handy for simple custom RenderLayers
|
||||||
* Vertices: float[]{ -1, -1, -1, 1, 1, -1, 1, 1 }
|
* Vertices: float[]{ -1, -1, -1, 1, 1, -1, 1, 1 }
|
||||||
*
|
*
|
||||||
|
* GL.glDrawArrays(GL20.GL_TRIANGLE_STRIP, 0, 4);
|
||||||
|
*
|
||||||
* @param bind - true to activate, false to unbind
|
* @param bind - true to activate, false to unbind
|
||||||
*/
|
*/
|
||||||
public static void bindQuadVertexVBO(int location, boolean bind) {
|
public static void bindQuadVertexVBO(int location, boolean bind) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user