summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMike Morris <mikemorris@users.noreply.github.com>2016-08-24 15:47:21 -0400
committerMike Morris <mikemorris@users.noreply.github.com>2016-09-21 10:33:40 -0400
commit6fe621bbef43e6b73a53ca25a9df3d349cd84929 (patch)
tree64bf5220c10d43814f960575385305cff8811c87 /include
parent658354ced1c90ee794dabb128d0861827639bd50 (diff)
downloadqtlocation-mapboxgl-6fe621bbef43e6b73a53ca25a9df3d349cd84929.tar.gz
[core] check GL errors in loop
As recommended in https://www.opengl.org/wiki/GLAPI/glGetError char* -> std::string
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/gl/gl.hpp5
1 files changed, 2 insertions, 3 deletions
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);