mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-15 20:20:54 +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)
|
||||
{
|
||||
auto tex = TileFiles.tiledata[num].texture;
|
||||
auto p = dynamic_cast<FWritableTile*>(tex->GetTexture());
|
||||
auto tex = dynamic_cast<FImageTexture*>(TileFiles.tiledata[num].texture->GetTexture());
|
||||
if (!tex) return nullptr;
|
||||
auto p = dynamic_cast<FWritableTile*>(tex->GetImage());
|
||||
return p ? p->GetRawData() : nullptr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue