From 4067a61c80b90e656f129f34f4479fa0c7262b91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Thu, 1 Feb 2018 15:12:10 -0500 Subject: [core] wrap glGetString in `MBGL_CHECK_ERROR` too --- test/api/custom_layer.test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/api/custom_layer.test.cpp') 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)); -- cgit v1.2.1