summaryrefslogtreecommitdiff
path: root/test/api/custom_layer.test.cpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2018-02-01 15:12:10 -0500
committerKonstantin Käfer <mail@kkaefer.com>2018-05-24 11:19:59 +0200
commit4067a61c80b90e656f129f34f4479fa0c7262b91 (patch)
treea51fd3d6c919faa4b80041347ff0f468e21bb860 /test/api/custom_layer.test.cpp
parent0212fd385cd991ef37c0efe0c1210948fd4d36fc (diff)
downloadqtlocation-mapboxgl-4067a61c80b90e656f129f34f4479fa0c7262b91.tar.gz
[core] wrap glGetString in `MBGL_CHECK_ERROR` too
Diffstat (limited to 'test/api/custom_layer.test.cpp')
-rw-r--r--test/api/custom_layer.test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/api/custom_layer.test.cpp b/test/api/custom_layer.test.cpp
index 6cb148a349..a94cf122bf 100644
--- a/test/api/custom_layer.test.cpp
+++ b/test/api/custom_layer.test.cpp
@@ -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));