mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-24 01:52:24 -05:00
rebuild
This commit is contained in:
parent
e04126fb52
commit
97a0d662fd
1 changed files with 6 additions and 3 deletions
|
@ -207,11 +207,14 @@ bool Game_CanPick(BlockID block) {
|
|||
}
|
||||
|
||||
bool Game_UpdateTexture(GfxResourceID* texId, struct Stream* src, const String* file, uint8_t* skinType) {
|
||||
Bitmap bmp;
|
||||
ReturnCode res = Png_Decode(&bmp, src);
|
||||
Bitmap bmp;
|
||||
bool success;
|
||||
ReturnCode res;
|
||||
|
||||
res = Png_Decode(&bmp, src);
|
||||
if (res) { Chat_LogError2(res, "decoding", file); }
|
||||
|
||||
bool success = !res && Game_ValidateBitmap(file, &bmp);
|
||||
success = !res && Game_ValidateBitmap(file, &bmp);
|
||||
if (success) {
|
||||
Gfx_DeleteTexture(texId);
|
||||
if (skinType) { *skinType = Utils_GetSkinType(&bmp); }
|
||||
|
|
Loading…
Add table
Reference in a new issue