another half life mip fix

This commit is contained in:
Jonathan 2023-07-16 22:11:07 -04:00
parent a5c0f0e768
commit 3f214b59cc
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ std::optional<texture> load_mip(
if (game->id == GAME_HALF_LIFE) { if (game->id == GAME_HALF_LIFE) {
bool valid_mip_palette = true; bool valid_mip_palette = true;
int32_t mip3_size = (header.width >> 3) + (header.height >> 3); int32_t mip3_size = (header.width >> 3) * (header.height >> 3);
size_t palette_size = sizeof(uint16_t) + (sizeof(qvec3b) * 256); size_t palette_size = sizeof(uint16_t) + (sizeof(qvec3b) * 256);
if (header.offsets[3] <= 0) { if (header.offsets[3] <= 0) {