diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2018-02-01 15:12:10 -0500 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2018-05-24 11:19:59 +0200 |
commit | 4067a61c80b90e656f129f34f4479fa0c7262b91 (patch) | |
tree | a51fd3d6c919faa4b80041347ff0f468e21bb860 /test/api/custom_layer.test.cpp | |
parent | 0212fd385cd991ef37c0efe0c1210948fd4d36fc (diff) | |
download | qtlocation-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.cpp | 2 |
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)); |