Fixed whatever was wrong with my shader
This commit is contained in:
@ -43,6 +43,20 @@ void TilesetAsset::updateAsync() {
|
||||
this->state = 0x04;
|
||||
assertTrue(this->tileset.rows > 0);
|
||||
|
||||
strCurrent = strNext+1;
|
||||
strNext = strchr(strCurrent, '|');
|
||||
*strNext = '\0';
|
||||
this->tileset.divX = atoi(strCurrent);
|
||||
this->state = 0x05;
|
||||
assertTrue(this->tileset.rows > 0);
|
||||
|
||||
strCurrent = strNext+1;
|
||||
strNext = strchr(strCurrent, '|');
|
||||
*strNext = '\0';
|
||||
this->tileset.divY = atoi(strCurrent);
|
||||
this->state = 0x06;
|
||||
assertTrue(this->tileset.rows > 0);
|
||||
|
||||
// Begin reading tiles.
|
||||
int32_t done = 0;
|
||||
int32_t count = this->tileset.columns * this->tileset.rows;
|
||||
@ -79,7 +93,7 @@ void TilesetAsset::updateAsync() {
|
||||
done++;
|
||||
}
|
||||
|
||||
this->state = 0x05;
|
||||
this->state = 0x07;
|
||||
this->loaded = true;
|
||||
this->eventLoaded.invoke();
|
||||
|
||||
|
Reference in New Issue
Block a user