Add missing cast for unsigned long to int conversion
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user