fix sprites for pixel ratios that are not 1 and 2

- OpenGL ES 2 doesn't allow NPOT textures with wrap-around
- The Sprite object reported the map's pixelRatio, even though it loaded @2x assets
- Copying icons from the sprite into the atlas now uses bilinear scaling to scale up to the actual size
This commit is contained in:
Konstantin Käfer
2015-03-16 19:30:08 +01:00
parent 0b1faba369
commit 48c55af5c1
19 changed files with 283 additions and 61 deletions

View File

@@ -5,10 +5,10 @@
#include <mbgl/util/util.hpp>
#include <mbgl/util/async_queue.hpp>
#include <mbgl/util/variant.hpp>
#include <mbgl/util/compression.hpp>
#include <mbgl/platform/log.hpp>
#include "sqlite3.hpp"
#include "compression.hpp"
#include <uv.h>