mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-30 00:41:24 +00:00
- moved kopenfilereader into the FileSystem class.
This commit is contained in:
parent
ef87d2d4f9
commit
749eda32c5
39 changed files with 70 additions and 71 deletions
|
@ -154,7 +154,7 @@ void FStbTexture::CreatePalettedPixels(uint8_t *buffer)
|
|||
|
||||
int FStbTexture::CopyPixels(FBitmap *bmp, int conversion)
|
||||
{
|
||||
auto lump = kopenFileReader(Name, 0);
|
||||
auto lump = fileSystem.OpenFileReader(Name, 0);
|
||||
if (!lump.isOpen()) return -1; // Just leave the texture blank.
|
||||
int x, y, chan;
|
||||
auto image = stbi_load_from_callbacks(&callbacks, &lump, &x, &y, &chan, STBI_rgb_alpha);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue