the asumptions were of course, incorrect
[convexer.git] / nbvtf / vtf_cmd.c
index 1fc553616ae34ed1d99dbca681b405544881b3c0..37bf0aaae86ce4ff2c2663075dbdf91372a37147 100644 (file)
@@ -5,6 +5,7 @@
 
 #define STB_IMAGE_IMPLEMENTATION
 #define NBVTF_SHOW_STDERR
+#define NBVTF_AS_SO
 #include "nbvtf.h"
 
 // Find file path extension, returns NULL if no ext (0x00)
@@ -126,7 +127,8 @@ int main( int argc, char *argv[] )
        printf( "tovtf: Creating vtf with format '%s'\n", vtf_format_strings[ format ] );
        
        auto_output( path_source, dest );
-       nbvtf_convert( path_source, 0, 0, 1, format, 0x00, dest );
+   nbvtf_init();
+       nbvtf_convert( path_source, 0, 0, 1, format, 16, 0x00, dest );
 
        return 0;
 }