LoadSinglePixelmap matching

This commit is contained in:
Dethrace Labs 2026-01-07 15:13:23 +13:00
parent c2035c3c95
commit dc4111db0a
1 changed files with 8 additions and 8 deletions

View File

@ -445,17 +445,17 @@ br_pixelmap* LoadSinglePixelmap(tBrender_storage* pStorage_space, char* pName) {
}
switch (AddPixelmapToStorage(pStorage_space, (br_pixelmap**)temp)) {
case eStorage_not_enough_room:
FatalError(kFatalError_InsufficientPixelmapSlots);
break;
case eStorage_duplicate:
BrPixelmapFree(temp);
return BrMapFind(pName);
case eStorage_allocated:
BrMapAdd(temp);
return temp;
break;
case eStorage_duplicate:
BrPixelmapFree(temp);
return BrMapFind(pName);
break;
case eStorage_not_enough_room:
FatalError(kFatalError_InsufficientPixelmapSlots);
return NULL;
}
return NULL;