20 lines
458 B
C++
20 lines
458 B
C++
#include <mbgl/platform/gl_functions.hpp>
|
|
|
|
#include <mbgl/util/logging.hpp>
|
|
#include <sstream>
|
|
|
|
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" + std::to_string(err) + ": " + cmd + " - " + file + ":" + std::to_string(line));
|
|
}
|
|
}
|
|
#endif
|
|
|
|
} // namespace platform
|
|
} // namespace mbgl
|