Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[core] Check GL errors even in release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jfirebaugh committed Oct 13, 2016
1 parent a24e559 commit 596f9c5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions include/mbgl/gl/gl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@ struct Error : std::runtime_error {

void checkError(const char *cmd, const char *file, int line);

#ifndef NDEBUG
#define MBGL_CHECK_ERROR(cmd) ([&]() { struct __MBGL_C_E { ~__MBGL_C_E() { ::mbgl::gl::checkError(#cmd, __FILE__, __LINE__); } } __MBGL_C_E; return cmd; }())
#else
#define MBGL_CHECK_ERROR(cmd) (cmd)
#endif

} // namespace gl
} // namespace mbgl

0 comments on commit 596f9c5

Please sign in to comment.