diff --git a/src/guest/pvr/tex.c b/src/guest/pvr/tex.c index b231dc52..5ae868de 100644 --- a/src/guest/pvr/tex.c +++ b/src/guest/pvr/tex.c @@ -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]; diff --git a/src/tracer.c b/src/tracer.c index c4ef975c..aac26f00 100644 --- a/src/tracer.c +++ b/src/tracer.c @@ -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",