]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host.c
removed unmaintained CgGL rendering path
[xonotic/darkplaces.git] / host.c
diff --git a/host.c b/host.c
index 1b776d7b5e761da4e48191033c170b0496debdc2..18a8c04b13492f3036c365a7b90c19635b85a491 100644 (file)
--- a/host.c
+++ b/host.c
@@ -30,6 +30,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #include "csprogs.h"
 #include "sv_demo.h"
 #include "snd_main.h"
+#include "thread.h"
 
 /*
 
@@ -1114,6 +1115,10 @@ static void Host_Init (void)
        // initialize filesystem (including fs_basedir, fs_gamedir, -game, scr_screenshot_name)
        FS_Init();
 
+       // must be after FS_Init
+       Crypto_Init();
+       Crypto_Init_Commands();
+
        NetConn_Init();
        Curl_Init();
        //PR_Init();
@@ -1136,6 +1141,7 @@ static void Host_Init (void)
                R_Modules_Init();
                Palette_Init();
                MR_Init_Commands();
+               Thread_Init();
                VID_Shared_Init();
                VID_Init();
                Render_Init();
@@ -1283,6 +1289,7 @@ void Host_Shutdown(void)
        {
                R_Modules_Shutdown();
                VID_Shutdown();
+               Thread_Shutdown();
        }
 
        Cmd_Shutdown();
@@ -1290,6 +1297,7 @@ void Host_Shutdown(void)
        CL_Shutdown();
        Sys_Shutdown();
        Log_Close();
+       Crypto_Shutdown();
        FS_Shutdown();
        Con_Shutdown();
        Memory_Shutdown();