summaryrefslogtreecommitdiff
path: root/src/mbgl/platform/gl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/platform/gl.cpp')
-rw-r--r--src/mbgl/platform/gl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mbgl/platform/gl.cpp b/src/mbgl/platform/gl.cpp
index 76be580b91..d387f3fbf8 100644
--- a/src/mbgl/platform/gl.cpp
+++ b/src/mbgl/platform/gl.cpp
@@ -1,4 +1,5 @@
#include <mbgl/platform/gl.hpp>
+#include <mbgl/util/string.hpp>
#include <mutex>
@@ -51,7 +52,7 @@ void checkError(const char *cmd, const char *file, int line) {
default: error = "(unknown)"; break;
}
- throw ::mbgl::gl::Error(err, std::string(cmd) + ": Error GL_" + error + " - " + file + ":" + std::to_string(line));
+ throw ::mbgl::gl::Error(err, std::string(cmd) + ": Error GL_" + error + " - " + file + ":" + util::toString(line));
}
}