diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2017-06-21 15:17:35 -0700 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2017-06-21 15:53:51 -0700 |
commit | 6ec406b6affc423a366e74cfe0437a621bf11b81 (patch) | |
tree | a849d6cec76a332f4f2294277303094b48d8385f /test/util | |
parent | 7610d428492fa6769e4ebc944a9bc4451a18cb98 (diff) | |
download | qtlocation-mapboxgl-6ec406b6affc423a366e74cfe0437a621bf11b81.tar.gz |
[core] add MBGL_CHECK_ERROR to some locations where it was missing
Diffstat (limited to 'test/util')
-rw-r--r-- | test/util/offscreen_texture.test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/util/offscreen_texture.test.cpp b/test/util/offscreen_texture.test.cpp index 0149b1a8dd..8c0d4f7011 100644 --- a/test/util/offscreen_texture.test.cpp +++ b/test/util/offscreen_texture.test.cpp @@ -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 }); |