[shader] Moved 'a_pos' GL attribute to Shader

Avoids duplicated code in all derived classes.
This commit is contained in:
Bruno de Oliveira Abinader
2015-09-10 14:05:16 +03:00
parent d9c7fdc565
commit 8d6b9696bf
26 changed files with 8 additions and 37 deletions

View File

@@ -12,7 +12,6 @@ PatternShader::PatternShader()
shaders[PATTERN_SHADER].vertex,
shaders[PATTERN_SHADER].fragment
) {
a_pos = MBGL_CHECK_ERROR(glGetAttribLocation(program, "a_pos"));
}
void PatternShader::bind(char *offset) {