From 4a58be2aa0dac98d22aceaf08bf3e05dc6751696 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 28 Oct 2024 01:59:39 +0300 Subject: [PATCH] ref: gl: deregister timerefresh command in renderer, as it's renderer-specific --- engine/client/cl_scrn.c | 1 - ref/gl/gl_opengl.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/client/cl_scrn.c b/engine/client/cl_scrn.c index 3222a711..bc347fa9 100644 --- a/engine/client/cl_scrn.c +++ b/engine/client/cl_scrn.c @@ -853,7 +853,6 @@ void SCR_Shutdown( void ) { if( !scr_init ) return; - Cmd_RemoveCommand( "timerefresh" ); Cmd_RemoveCommand( "skyname" ); Cmd_RemoveCommand( "viewpos" ); UI_SetActiveMenu( false ); diff --git a/ref/gl/gl_opengl.c b/ref/gl/gl_opengl.c index 75fb4829..50367697 100644 --- a/ref/gl/gl_opengl.c +++ b/ref/gl/gl_opengl.c @@ -1261,6 +1261,7 @@ GL_RemoveCommands static void GL_RemoveCommands( void ) { gEngfuncs.Cmd_RemoveCommand( "r_info" ); + gEngfuncs.Cmd_RemoveCommand( "timerefresh" ); } /*