Add missing cast for unsigned long to int conversion

This commit is contained in:
Gali Nelle
2020-04-18 12:38:58 +03:00
committed by galinelle
parent 61b43cdedc
commit 9d23917de1

View File

@@ -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();