mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
ref: gl: don't misleadingly tell about enabled vsync on engine startup before configs are parsed
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user