summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer
diff options
context:
space:
mode:
authorGali Nelle <galinelle.mapbox@gmail.com>2020-04-18 12:38:58 +0300
committergalinelle <paolo.angelelli@mapbox.com>2020-04-20 10:22:29 +0300
commit9d23917de195dd8ec07b90497b7cec8ecb7db508 (patch)
tree19b85c3a4edbb272a7367090cec572ac9425f317 /src/mbgl/renderer
parent61b43cdedc733820c96380079bf9b835edb8f230 (diff)
downloadqtlocation-mapboxgl-9d23917de195dd8ec07b90497b7cec8ecb7db508.tar.gz
Add missing cast for unsigned long to int conversion
Diffstat (limited to 'src/mbgl/renderer')
-rw-r--r--src/mbgl/renderer/layers/render_location_indicator_layer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/renderer/layers/render_location_indicator_layer.cpp b/src/mbgl/renderer/layers/render_location_indicator_layer.cpp
index c3872e92d0..1a1bdc1b4b 100644
--- a/src/mbgl/renderer/layers/render_location_indicator_layer.cpp
+++ b/src/mbgl/renderer/layers/render_location_indicator_layer.cpp
@@ -614,11 +614,11 @@ protected:
MBGL_CHECK_ERROR(glEnableVertexAttribArray(simpleShader.a_pos));
MBGL_CHECK_ERROR(glVertexAttribPointer(simpleShader.a_pos, 2, GL_FLOAT, GL_FALSE, 0, nullptr));
- MBGL_CHECK_ERROR(glDrawArrays(GL_TRIANGLE_FAN, 0, circle.size()));
+ MBGL_CHECK_ERROR(glDrawArrays(GL_TRIANGLE_FAN, 0, GLsizei(circle.size())));
if (params.errorRadiusBorderColor.a > 0.0f) {
mbgl::gl::bindUniform(simpleShader.u_color, params.errorRadiusBorderColor);
MBGL_CHECK_ERROR(glLineWidth(1.0f));
- MBGL_CHECK_ERROR(glDrawArrays(GL_LINE_STRIP, 1, circle.size() - 1));
+ MBGL_CHECK_ERROR(glDrawArrays(GL_LINE_STRIP, 1, GLsizei(circle.size() - 1)));
}
MBGL_CHECK_ERROR(glDisableVertexAttribArray(simpleShader.a_pos));
circleBuffer.detach();