@@ -9,10 +9,11 @@ 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));
|
||||
Log::Warning(Event::OpenGL,
|
||||
"Error" + std::to_string(err) + ": " + cmd + " - " + file + ":" + std::to_string(line));
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
} // namespace platform
|
||||
} // namespace mbgl
|
||||
} // namespace platform
|
||||
} // namespace mbgl
|
||||
|
||||
Reference in New Issue
Block a user