init glfw for debug images + actually copy images over

This commit is contained in:
Konstantin Käfer
2014-05-19 14:21:15 +02:00
parent f848868c16
commit 92706445d9
2 changed files with 5 additions and 1 deletions

View File

@@ -203,7 +203,7 @@ void SpriteAtlas::update(const Sprite &sprite) {
Rect<dimension> dst = atlas.getImage(name, sprite);
const SpritePosition &src = sprite.getSpritePosition(name);
if (src.width == dst.w * atlas.pixelRatio && src.height == dst.h * atlas.pixelRatio && src.pixelRatio == atlas.pixelRatio) {
// atlas.copy(dst, src, sprite);
atlas.copy(dst, src, sprite);
return true;
} else {
fprintf(stderr, "sprite icon dimension mismatch\n");