mirror of https://github.com/inolen/redream.git
fix bad texture format constants being used instead of pixel format constants
This commit is contained in:
parent
9526f636f5
commit
5280bf813d
|
@ -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];
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue