]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
remove questionable disabled debug dds code, git is made to keep track of junk history
authorThomas Debesse <dev@illwieckz.net>
Sun, 28 Oct 2018 22:09:03 +0000 (23:09 +0100)
committerThomas Debesse <dev@illwieckz.net>
Sun, 28 Oct 2018 22:21:24 +0000 (23:21 +0100)
tools/quake3/q3map2/image.c

index c947085445def14e171f98983fe357a4213d11f5..362bbda1a17a8583b91722f3d55ce7ce6d867766 100644 (file)
@@ -464,20 +464,6 @@ image_t *ImageLoad( const char *filename ){
                size = vfsLoadFile( (const char*) name, (void**) &buffer, 0 );
                if ( size > 0 ) {
                        LoadDDSBuffer( buffer, size, &image->pixels, &image->width, &image->height );
-
-                       /* debug code */
-                       #if 1
-                       {
-                               ddsPF_t pf;
-                               DDSGetInfo( (ddsBuffer_t*) buffer, NULL, NULL, &pf );
-                               Sys_Printf( "pf = %d\n", pf );
-                               if ( image->width > 0 ) {
-                                       StripExtension( name );
-                                       strcat( name, "_converted.tga" );
-                                       WriteTGA( "C:\\games\\quake3\\baseq3\\textures\\rad\\dds_converted.tga", image->pixels, image->width, image->height );
-                               }
-                       }
-                       #endif // debug
                        break;
                }