mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-11 20:05:58 +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) {
|
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…
Reference in New Issue
Block a user