summaryrefslogtreecommitdiff
path: root/src/mbgl/platform/gl_functions.cpp
blob: 6eb7790ca251745dc0db3271c5e4d31689aa367e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <mbgl/platform/gl_functions.hpp>

#include <mbgl/util/logging.hpp>

namespace mbgl {
namespace platform {

#ifndef NDEBUG
void glCheckError(const char* cmd, const char* file, int line) {
    if (GLenum err = glGetError()) {
        Log::Warning(Event::OpenGL, "Error %d: %s - %s:%d", err, cmd, file, line);
    }
}
#endif

}  // namespace platform
}  // namespace mbgl