[shader] bind() is now a pure virtual
- Shader::bind() now receives a GLbyte* - BUFFER_OFFSET now uses GLbyte
This commit is contained in:
@@ -59,7 +59,7 @@ void Painter::renderDebugFrame(const mat4 &matrix) {
|
||||
plainShader->u_matrix = matrix;
|
||||
|
||||
// draw tile outline
|
||||
tileBorderArray.bind(*plainShader, tileBorderBuffer, BUFFER_OFFSET(0));
|
||||
tileBorderArray.bind(*plainShader, tileBorderBuffer, BUFFER_OFFSET_0);
|
||||
plainShader->u_color = {{ 1.0f, 0.0f, 0.0f, 1.0f }};
|
||||
lineWidth(4.0f * data.pixelRatio);
|
||||
MBGL_CHECK_ERROR(glDrawArrays(GL_LINE_STRIP, 0, (GLsizei)tileBorderBuffer.index()));
|
||||
|
||||
Reference in New Issue
Block a user