[shader] bind() is now a pure virtual

- Shader::bind() now receives a GLbyte*
- BUFFER_OFFSET now uses GLbyte
This commit is contained in:
Bruno de Oliveira Abinader
2015-09-10 14:46:38 +03:00
parent 8d6b9696bf
commit 2156aa35ca
36 changed files with 65 additions and 62 deletions

View File

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