[core] add MBGL_CHECK_ERROR to some locations where it was missing

This commit is contained in:
Konstantin Käfer
2017-06-21 15:17:35 -07:00
parent 7610d42849
commit 6ec406b6af
2 changed files with 6 additions and 6 deletions

View File

@@ -40,7 +40,7 @@ struct Shader {
MBGL_CHECK_ERROR(glCompileShader(fragmentShader));
MBGL_CHECK_ERROR(glAttachShader(program, fragmentShader));
MBGL_CHECK_ERROR(glLinkProgram(program));
a_pos = glGetAttribLocation(program, "a_pos");
a_pos = MBGL_CHECK_ERROR(glGetAttribLocation(program, "a_pos"));
}
~Shader() {
@@ -119,7 +119,7 @@ void main() {
}
)MBGL_SHADER");
GLuint u_texture = glGetUniformLocation(compositeShader.program, "u_texture");
GLuint u_texture = MBGL_CHECK_ERROR(glGetUniformLocation(compositeShader.program, "u_texture"));
Buffer triangleBuffer({ 0, 0.5, 0.5, -0.5, -0.5, -0.5 });
Buffer viewportBuffer({ -1, -1, 1, -1, -1, 1, 1, 1 });