]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Move QC extension reporting out of video initialisation
authorbones_was_here <bones_was_here@xonotic.au>
Tue, 3 Oct 2023 04:52:17 +0000 (14:52 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Sat, 28 Oct 2023 08:18:47 +0000 (18:18 +1000)
Once at startup is enough, no need to do this during vid_restart (etc).

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
prvm_edict.c
vid_sdl.c

index 858ab357c500c39b23c4339e31bf5b9e20976fed..cac50b27fc54b8b8cd050d368438d8985009218e 100644 (file)
@@ -3144,6 +3144,8 @@ PRVM_Init
 */
 void PRVM_Init (void)
 {
+       unsigned int i;
+
        Cmd_AddCommand(CF_SHARED, "prvm_edict", PRVM_ED_PrintEdict_f, "print all data about an entity number in the selected VM (server, client, menu)");
        Cmd_AddCommand(CF_SHARED, "prvm_edicts", PRVM_ED_PrintEdicts_f, "prints all data about all entities in the selected VM (server, client, menu)");
        Cmd_AddCommand(CF_SHARED, "prvm_edictcount", PRVM_ED_Count_f, "prints number of active entities in the selected VM (server, client, menu)");
@@ -3188,6 +3190,18 @@ void PRVM_Init (void)
        prvm_runawaycheck = !Sys_CheckParm("-norunaway");
 
        //VM_Cmd_Init();
+
+       // LadyHavoc: report supported extensions
+       Con_DPrintf("\nQuakeC extensions for server and client:");
+       for (i = 0; vm_sv_extensions[i]; i++)
+               Con_DPrintf(" %s", vm_sv_extensions[i]);
+       Con_DPrintf("\n");
+#ifdef CONFIG_MENU
+       Con_DPrintf("\nQuakeC extensions for menu:");
+       for (i = 0; vm_m_extensions[i]; i++)
+               Con_DPrintf(" %s", vm_m_extensions[i]);
+       Con_DPrintf("\n");
+#endif
 }
 
 /*
index 5b581c5d2ad4c291b3af1a0dbc9dbe4d2e839284..91115ca1982ec3e8c4baf8ceab5fb4c7cca5434a 100644 (file)
--- a/vid_sdl.c
+++ b/vid_sdl.c
@@ -1615,18 +1615,6 @@ static qbool VID_InitModeGL(viddef_mode_t *mode)
        Cvar_SetQuick(&gl_info_platform, gl_platform ? gl_platform : "");
        Cvar_SetQuick(&gl_info_driver, gl_driver);
 
-       // LadyHavoc: report supported extensions
-       Con_DPrintf("\nQuakeC extensions for server and client:");
-       for (i = 0; vm_sv_extensions[i]; i++)
-               Con_DPrintf(" %s", vm_sv_extensions[i]);
-       Con_DPrintf("\n");
-#ifdef CONFIG_MENU
-       Con_DPrintf("\nQuakeC extensions for menu:");
-       for (i = 0; vm_m_extensions[i]; i++)
-               Con_DPrintf(" %s", vm_m_extensions[i]);
-       Con_DPrintf("\n");
-#endif
-
        // clear to black (loading plaque will be seen over this)
        GL_Clear(GL_COLOR_BUFFER_BIT, NULL, 1.0f, 0);