[shader] Moved 'a_pos' GL attribute to Shader
Avoids duplicated code in all derived classes.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user