[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

@@ -15,7 +15,7 @@ LinepatternShader::LinepatternShader()
a_data = MBGL_CHECK_ERROR(glGetAttribLocation(program, "a_data"));
}
void LinepatternShader::bind(char *offset) {
void LinepatternShader::bind(GLbyte *offset) {
MBGL_CHECK_ERROR(glEnableVertexAttribArray(a_pos));
MBGL_CHECK_ERROR(glVertexAttribPointer(a_pos, 2, GL_SHORT, false, 8, offset + 0));