mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-11-22 13:56:50 +03:00
feat(gx): use crappy green default for textures that fail to load
This commit is contained in:
1 file changed
+5
-3
+5
-3
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user