added cvar persistence
[fishladder.git] / vg / vg.h
diff --git a/vg/vg.h b/vg/vg.h
index 6e2d0ff48b0cb896598596ebbfdf579aaf6a4e83..575bf036eeabf667aa322983555a3a2dee818830 100644 (file)
--- a/vg/vg.h
+++ b/vg/vg.h
@@ -210,9 +210,6 @@ static void vg_init( int argc, char *argv[], const char *window_name )
        const unsigned char* glver = glGetString( GL_VERSION );
        vg_success( "Load setup complete, OpenGL version: %s\n", glver );
        
-       vg_console_init();
-       vg_register_exit( &vg_console_free, "Console" );
-       
        vg_run_gfx_diagnostics();
        
        for( int id = 0; id <= GLFW_JOYSTICK_LAST; id ++ )
@@ -241,6 +238,9 @@ static void vg_init( int argc, char *argv[], const char *window_name )
        {
                vg_start();
        
+               vg_console_init();
+               vg_register_exit( &vg_console_free, "Console" );
+       
                vg_audio_init();
                vg_register_exit( &vg_audio_free, "vg_audio_free" );