mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-13 18:48:44 +08:00
[c] Closes #695, count parameter to indexOf when matching texture filters was off by one
This commit is contained in:
parent
691c33d9a9
commit
721de143d2
@ -208,11 +208,11 @@ spAtlas* spAtlas_create (const char* begin, int length, const char* dir, void* r
|
||||
page->height = toInt(tuple + 1);
|
||||
if (!readTuple(&begin, end, tuple)) return abortAtlas(self);
|
||||
}
|
||||
page->format = (spAtlasFormat)indexOf(formatNames, 7, tuple);
|
||||
page->format = (spAtlasFormat)indexOf(formatNames, 8, tuple);
|
||||
|
||||
if (!readTuple(&begin, end, tuple)) return abortAtlas(self);
|
||||
page->minFilter = (spAtlasFilter)indexOf(textureFilterNames, 7, tuple);
|
||||
page->magFilter = (spAtlasFilter)indexOf(textureFilterNames, 7, tuple + 1);
|
||||
page->minFilter = (spAtlasFilter)indexOf(textureFilterNames, 8, tuple);
|
||||
page->magFilter = (spAtlasFilter)indexOf(textureFilterNames, 8, tuple + 1);
|
||||
|
||||
if (!readValue(&begin, end, &str)) return abortAtlas(self);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user