From 6fe621bbef43e6b73a53ca25a9df3d349cd84929 Mon Sep 17 00:00:00 2001 From: Mike Morris Date: Wed, 24 Aug 2016 15:47:21 -0400 Subject: [core] check GL errors in loop As recommended in https://www.opengl.org/wiki/GLAPI/glGetError char* -> std::string --- include/mbgl/gl/gl.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include/mbgl/gl') diff --git a/include/mbgl/gl/gl.hpp b/include/mbgl/gl/gl.hpp index 285f1ff3ba..092166ef96 100644 --- a/include/mbgl/gl/gl.hpp +++ b/include/mbgl/gl/gl.hpp @@ -59,9 +59,8 @@ namespace gl { void mbx_trapExtension(const char *name, GLuint array); #endif -struct Error : ::std::runtime_error { - Error(GLenum err, const std::string &msg) : ::std::runtime_error(msg), code(err) {}; - const GLenum code; +struct Error : std::runtime_error { + using std::runtime_error::runtime_error; }; void checkError(const char *cmd, const char *file, int line); -- cgit v1.2.1