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