From c956c65e3359926cc4ce9e4e5d8c50b00f6f0f82 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 23 Nov 2025 11:45:47 +0500 Subject: [PATCH] ref: gl: don't misleadingly tell about enabled vsync on engine startup before configs are parsed --- ref/gl/gl_opengl.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/ref/gl/gl_opengl.c b/ref/gl/gl_opengl.c index f3708b45..9e8f4cd5 100644 --- a/ref/gl/gl_opengl.c +++ b/ref/gl/gl_opengl.c @@ -673,7 +673,7 @@ static void GL_SetDefaults( void ) R_RenderInfo_f ================= */ -static void R_RenderInfo_f( void ) +static void R_RenderInfo( qboolean startup ) { gEngfuncs.Con_Printf( "\n" ); gEngfuncs.Con_Printf( "GL_VENDOR: %s\n", glConfig.vendor_string ); @@ -723,11 +723,17 @@ static void R_RenderInfo_f( void ) gEngfuncs.Con_Printf( "\n" ); gEngfuncs.Con_Printf( "MODE: %ix%i\n", gpGlobals->width, gpGlobals->height ); gEngfuncs.Con_Printf( "\n" ); - gEngfuncs.Con_Printf( "VERTICAL SYNC: %s\n", gl_vsync->value ? "enabled" : "disabled" ); + if( !startup ) + gEngfuncs.Con_Printf( "VERTICAL SYNC: %s\n", gl_vsync->value ? "enabled" : "disabled" ); gEngfuncs.Con_Printf( "Color %d bits, Alpha %d bits, Depth %d bits, Stencil %d bits\n", glConfig.color_bits, glConfig.alpha_bits, glConfig.depth_bits, glConfig.stencil_bits ); } +static void R_RenderInfo_f( void ) +{ + R_RenderInfo( false ); +} + #if XASH_GLES static void GL_InitExtensionsGLES( void ) { @@ -1103,7 +1109,7 @@ void GL_InitExtensions( void ) gEngfuncs.Cvar_SetValue( "gl_finish", 1 ); #endif - R_RenderInfo_f(); + R_RenderInfo( true ); tr.framecount = tr.visframecount = 1; glw_state.initialized = true;