--- a/src/pvr2/texcache.c Tue Oct 26 08:39:02 2010 +1000 +++ b/src/pvr2/texcache.c Tue Oct 26 18:41:01 2010 +1000 @@ -94,7 +94,7 @@ int i; GLuint texids[MAX_TEXTURES]; - if( glsl_is_supported() && isGLMultitextureSupported ) { + if( glsl_is_supported() && isGLMultitextureSupported() ) { texcache_have_palette_shader = TRUE; texcache_palette_valid = FALSE; glGenTextures(1, &texcache_palette_texid ); @@ -898,3 +898,19 @@ } } } + +void texcache_print_idx4( uint32_t texture_addr, int width ) +{ + unsigned x,y; + int src_bytes = (width*width>>1); + char tmp[src_bytes]; + char data[width*width]; + pvr2_vram64_read_twiddled_4( tmp, texture_addr, width, width ); + decode_pal4_to_pal8( data, tmp, src_bytes ); + for( y=0; y