From cccae7d153e92004f391b78974cb2ad04e27a759 Mon Sep 17 00:00:00 2001 From: Ansis Brammanis Date: Wed, 2 Sep 2015 15:14:14 -0400 Subject: fix circles at very high zoom levels https://github.com/mapbox/mapbox-gl-js/commit/5c8be4b8487a230a32684737a1e81c8a0b2a4396 --- src/mbgl/shader/circle.vertex.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mbgl/shader') diff --git a/src/mbgl/shader/circle.vertex.glsl b/src/mbgl/shader/circle.vertex.glsl index eeeb30abc5..387c377a60 100644 --- a/src/mbgl/shader/circle.vertex.glsl +++ b/src/mbgl/shader/circle.vertex.glsl @@ -15,7 +15,7 @@ void main(void) { vec4 extrude = u_exmatrix * vec4(v_extrude * u_size, 0, 0); // multiply a_pos by 0.5, since we had it * 2 in order to sneak // in extrusion data - gl_Position = u_matrix * vec4(a_pos * 0.5, 0, 1); + gl_Position = u_matrix * vec4(floor(a_pos * 0.5), 0, 1); // gl_Position is divided by gl_Position.w after this shader runs. // Multiply the extrude by it so that it isn't affected by it. -- cgit v1.2.1