--- a/src/pvr2/texcache.c Mon Jan 15 12:17:02 2007 +0000 +++ b/src/pvr2/texcache.c Mon Jan 15 12:58:05 2007 +0000 @@ -1,5 +1,5 @@ /** - * $Id: texcache.c,v 1.13 2007-01-15 12:17:02 nkeynes Exp $ + * $Id: texcache.c,v 1.14 2007-01-15 12:57:42 nkeynes Exp $ * * Texture cache. Responsible for maintaining a working set of OpenGL * textures. @@ -397,10 +397,10 @@ char data[(width*height) << bpp_shift]; if( tex_format == PVR2_TEX_FORMAT_YUV422 ) { char tmp[(width*height)<<1]; - pvr2_vram64_read_stride( &tmp, width<<1, texture_addr, stride<<1, height ); - yuv_decode(width, height, &tmp, &data ); + pvr2_vram64_read_stride( tmp, width<<1, texture_addr, stride<<1, height ); + yuv_decode(width, height, (uint32_t *)tmp, (uint32_t *)data ); } else { - pvr2_vram64_read_stride( &data, width<> 2); char tmp[inputlength]; pvr2_vram64_read( tmp, texture_addr, inputlength ); - vq_decode( mip_width, mip_height, tmp, (uint16_t *)&data, &codebook, + vq_decode( mip_width, mip_height, tmp, (uint16_t *)data, &codebook, PVR2_TEX_IS_TWIDDLED(mode) ); } else if( PVR2_TEX_IS_TWIDDLED(mode) ) { char tmp[mip_bytes]; uint16_t *p = (uint16_t *)tmp; pvr2_vram64_read( tmp, texture_addr, mip_bytes ); /* Untwiddle */ - detwiddle_16_to_16( 0, 0, mip_width, mip_width, &p, (uint16_t *)&data ); + detwiddle_16_to_16( 0, 0, mip_width, mip_width, &p, (uint16_t *)data ); } else { pvr2_vram64_read( data, texture_addr, mip_bytes ); }