mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
feat(gx): use crappy green default for textures that fail to load
This commit is contained in:
parent
d889a02083
commit
1a4022eb31
1 changed files with 5 additions and 3 deletions
|
|
@ -31,6 +31,8 @@ namespace Texture {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static CImVector CRAPPY_GREEN = { 0x00, 0xFF, 0x00, 0xFF };
|
||||||
|
|
||||||
void AsyncTextureWait(CTexture* texture) {
|
void AsyncTextureWait(CTexture* texture) {
|
||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
@ -773,8 +775,7 @@ CTexture* CreateBlpSync(int32_t createFlags, char* fileName, char* fileExt, CGxT
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!PumpBlpTextureAsync(texture, buf)) {
|
if (!PumpBlpTextureAsync(texture, buf)) {
|
||||||
// TODO
|
FillInSolidTexture(CRAPPY_GREEN, texture);
|
||||||
// FillInSolidTexture((int)&CRAPPY_GREEN, (int)v4);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SFile::Close(file);
|
SFile::Close(file);
|
||||||
|
|
@ -918,7 +919,8 @@ HTEXTURE TextureCreate(const char* fileName, CGxTexFlags texFlags, CStatus* stat
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
// FileError(status, "texture", fileName);
|
// FileError(status, "texture", fileName);
|
||||||
// return TextureCreateSolid(&CRAPPY_GREEN);
|
|
||||||
|
return TextureCreateSolid(CRAPPY_GREEN);
|
||||||
|
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue