1.1 --- a/src/pvr2/texcache.c Tue Oct 26 08:39:02 2010 +1000
1.2 +++ b/src/pvr2/texcache.c Wed Jan 19 10:45:06 2011 +1000
1.5 GLuint texids[MAX_TEXTURES];
1.7 - if( glsl_is_supported() && isGLMultitextureSupported ) {
1.8 + if( glsl_is_supported() && isGLMultitextureSupported() ) {
1.9 texcache_have_palette_shader = TRUE;
1.10 texcache_palette_valid = FALSE;
1.11 glGenTextures(1, &texcache_palette_texid );
1.12 @@ -898,3 +898,19 @@
1.17 +void texcache_print_idx4( uint32_t texture_addr, int width )
1.20 + int src_bytes = (width*width>>1);
1.21 + char tmp[src_bytes];
1.22 + char data[width*width];
1.23 + pvr2_vram64_read_twiddled_4( tmp, texture_addr, width, width );
1.24 + decode_pal4_to_pal8( data, tmp, src_bytes );
1.25 + for( y=0; y<width; y++ ) {
1.26 + for( x=0; x<width; x++ ) {
1.27 + printf( "%1x", data[y*width+x] );