LoadSingleShadeTable matching

This commit is contained in:
Dethrace Labs 2026-01-08 15:10:32 +13:00
parent dff840176f
commit eddcb0e2e3
1 changed files with 8 additions and 8 deletions

View File

@ -542,17 +542,17 @@ br_pixelmap* LoadSingleShadeTable(tBrender_storage* pStorage_space, char* pName)
}
switch (AddShadeTableToStorage(pStorage_space, temp)) {
case eStorage_not_enough_room:
FatalError(kFatalError_InsufficientShadeTableSlots);
break;
case eStorage_duplicate:
BrPixelmapFree(temp);
return BrTableFind(pName);
case eStorage_allocated:
BrTableAdd(temp);
return temp;
break;
case eStorage_duplicate:
BrPixelmapFree(temp);
return BrTableFind(pName);
break;
case eStorage_not_enough_room:
FatalError(kFatalError_InsufficientShadeTableSlots);
return NULL;
}
return NULL;