fix bad texture format constants being used instead of pixel format constants

This commit is contained in:
Anthony Pesch 2017-10-07 13:56:21 -04:00
parent 9526f636f5
commit 5280bf813d
2 changed files with 2 additions and 3 deletions

View File

@ -593,9 +593,9 @@ void pvr_tex_decode(const uint8_t *src, int width, int height, int stride,
/* for vq compressed textures the offset is only for the index data, the
codebook is the same for all levels */
index += compressed_mipmap_offsets[u_size];
} else if (pixel_fmt == PVR_TEX_PALETTE_4BPP) {
} else if (pixel_fmt == PVR_PXL_4BPP) {
src += paletted_4bpp_mipmap_offsets[u_size];
} else if (pixel_fmt == PVR_TEX_PALETTE_8BPP) {
} else if (pixel_fmt == PVR_PXL_8BPP) {
src += paletted_8bpp_mipmap_offsets[u_size];
} else {
src += nonpaletted_mipmap_offsets[u_size];

View File

@ -42,7 +42,6 @@ static const char *texture_fmt_names[] = {
"PVR_TEX_PALETTE_8BPP_MIPMAPS",
"PVR_TEX_BITMAP_RECT",
NULL,
NULL,
"PVR_TEX_BITMAP",
NULL,
"PVR_TEX_TWIDDLED_RECT",