diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2017-03-02 17:58:57 -0800 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2017-03-02 17:59:16 -0800 |
commit | eacb90625cb8993ba0d477c909cb6b1e78b7e2dd (patch) | |
tree | 3bc2dded698a32773b3359eacce594360c94f09d | |
parent | 8742dc852c82ef40003a22a8e0a764616d8beed1 (diff) | |
download | qtlocation-mapboxgl-upstream/8266-glyph-atlas-debug.tar.gz |
[core] add commented out Glyph Atlas debuggingupstream/8266-glyph-atlas-debug
-rw-r--r-- | src/mbgl/text/glyph_atlas.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mbgl/text/glyph_atlas.cpp b/src/mbgl/text/glyph_atlas.cpp index 1b3f7518b5..d030a5609b 100644 --- a/src/mbgl/text/glyph_atlas.cpp +++ b/src/mbgl/text/glyph_atlas.cpp @@ -187,6 +187,13 @@ void GlyphAtlas::upload(gl::Context& context, gl::TextureUnit unit) { context.updateTexture(*texture, image, unit); } +// #if not MBGL_USE_GLES2 +// if (dirty) { +// platform::showDebugImage("Glyph Atlas", reinterpret_cast<const char*>(image.data.get()), +// image.size.width, image.size.height); +// } +// #endif // MBGL_USE_GLES2 + dirty = false; } |