Get rid of printf and cout by using Log::*

Use our logging system that will route the message accordingly on
the target platform.

Fixes #613
This commit is contained in:
Thiago Marcos P. Santos
2015-03-11 17:19:16 +02:00
parent 2b6afe6a54
commit 124b49562d
17 changed files with 65 additions and 54 deletions

View File

@@ -1,5 +1,6 @@
#include <mbgl/platform/platform.hpp>
#include <mbgl/platform/gl.hpp>
#include <mbgl/platform/log.hpp>
#include <mbgl/util/raster.hpp>
#include <mbgl/util/uv_detail.hpp>
@@ -40,7 +41,7 @@ bool Raster::load(const std::string &data) {
void Raster::bind(bool linear) {
if (!width || !height) {
fprintf(stderr, "trying to bind texture without dimension\n");
Log::Error(Event::OpenGL, "trying to bind texture without dimension");
return;
}