[core] wrap glGetString in MBGL_CHECK_ERROR too

This commit is contained in:
Konstantin Käfer
2018-02-01 15:12:10 -05:00
parent 0212fd385c
commit 4067a61c80
2 changed files with 3 additions and 3 deletions

View File

@@ -48,7 +48,7 @@ public:
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"));
GLfloat triangle[] = { 0, 0.5, 0.5, -0.5, -0.5, -0.5 };
MBGL_CHECK_ERROR(glGenBuffers(1, &buffer));