diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2014-03-27 13:20:13 +0100 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2014-03-27 13:20:13 +0100 |
| commit | 4bff649737d0ecfe85880134b499b8c7aff6dad1 (patch) | |
| tree | 98f9994152cacc0f25466d1b3110ea03085af57a /unity-shared | |
| parent | d587fe6a6189267410de493bb353864b18c54229 (diff) | |
TextureCache: use better loading size logic
(bzr r3740.3.11)
Diffstat (limited to 'unity-shared')
| -rw-r--r-- | unity-shared/TextureCache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unity-shared/TextureCache.cpp b/unity-shared/TextureCache.cpp index 7b411b55c..7005063f3 100644 --- a/unity-shared/TextureCache.cpp +++ b/unity-shared/TextureCache.cpp @@ -37,7 +37,7 @@ TextureCache& TextureCache::GetDefault() nux::BaseTexture* TextureCache::DefaultTexturesLoader(std::string const& name, int w, int h) { int size = std::max(w, h); - return nux::CreateTexture2DFromFile((PKGDATADIR"/" + name).c_str(), (!size ? -1 : size), true); + return nux::CreateTexture2DFromFile((PKGDATADIR"/" + name).c_str(), (size <= 0 ? -1 : size), true); } std::size_t TextureCache::Hash(std::string const& id, int width, int height) |
