Use std::optional instead of mbgl::optional (#911)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include <mbgl/platform/gl_functions.hpp>
|
||||
|
||||
#include <mbgl/util/logging.hpp>
|
||||
#include <sstream>
|
||||
|
||||
namespace mbgl {
|
||||
namespace platform {
|
||||
@@ -8,7 +9,7 @@ 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);
|
||||
Log::Warning(Event::OpenGL, "Error" + std::to_string(err) + ": " + cmd + " - " + file + ":" + std::to_string(line));
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user