]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3map2/image.c
make crunch build optional and disabled by default
[xonotic/netradiant.git] / tools / quake3 / q3map2 / image.c
index 4bf1ec0ee5987442a23daba6423c78769d33a03a..1732867b6ca0aac13d825406cf7e66fe2346c44c 100644 (file)
@@ -86,6 +86,7 @@ static void LoadDDSBuffer( byte *buffer, int size, byte **pixels, int *width, in
        DDSDecompress( (ddsBuffer_t*) buffer, *pixels );
 }
 
+#ifdef BUILD_CRUNCH
 /*
     LoadCRNBuffer
     loads a crn image into a valid rgba image
@@ -106,6 +107,7 @@ void LoadCRNBuffer( byte *buffer, int size, byte **pixels, int *width, int *heig
                return;
        }
 }
+#endif // BUILD_CRUNCH
 
 
 /*
@@ -457,6 +459,7 @@ image_t *ImageLoad( const char *filename ){
                                        if ( size > 0 ) {
                                                LoadKTXBufferFirstImage( buffer, size, &image->pixels, &image->width, &image->height );
                                        }
+                                       #ifdef BUILD_CRUNCH
                                        else
                                        {
                                                /* attempt to load crn */
@@ -467,6 +470,7 @@ image_t *ImageLoad( const char *filename ){
                                                        LoadCRNBuffer( buffer, size, &image->pixels, &image->width, &image->height );
                                                }
                                        }
+                                       #endif // BUILD_CRUNCH
                                }
                        }
                }