mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-28 18:00:40 +00:00
- fixed writable tiles.
This commit is contained in:
parent
5e93b8f3e7
commit
f6ca5fa650
1 changed files with 3 additions and 2 deletions
|
@ -379,8 +379,9 @@ inline bool tileLoad(int tileNum)
|
||||||
|
|
||||||
inline uint8_t* tileData(int num)
|
inline uint8_t* tileData(int num)
|
||||||
{
|
{
|
||||||
auto tex = TileFiles.tiledata[num].texture;
|
auto tex = dynamic_cast<FImageTexture*>(TileFiles.tiledata[num].texture->GetTexture());
|
||||||
auto p = dynamic_cast<FWritableTile*>(tex->GetTexture());
|
if (!tex) return nullptr;
|
||||||
|
auto p = dynamic_cast<FWritableTile*>(tex->GetImage());
|
||||||
return p ? p->GetRawData() : nullptr;
|
return p ? p->GetRawData() : nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue