Files
MapLibreParticleLab/src/mbgl/platform/gl_functions.cpp
Bart Louwers 71f6da2722 Add clang-format (#1086)
Co-authored-by: mwilsnd <mwilsnd@gmail.com>
2023-05-01 16:57:37 +02:00

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