File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2097,8 +2097,6 @@ bool CL_InitRenderer()
20972097return false ;
20982098}
20992099
2100- fileHandle_t f;
2101-
21022100// this sets up the renderer and calls R_Init
21032101if ( !re.BeginRegistration ( &cls.windowConfig ) )
21042102{
@@ -2109,6 +2107,9 @@ bool CL_InitRenderer()
21092107cl_consoleFontSize = Cvar_Get ( " cl_consoleFontSize" , " 16" , CVAR_LATCH );
21102108cl_consoleFontScaling = Cvar_Get ( " cl_consoleFontScaling" , " 1" , CVAR_LATCH );
21112109
2110+ #if defined(BUILD_GRAPHICAL_CLIENT)
2111+ fileHandle_t f;
2112+
21122113// Register console font specified by cl_consoleFont, if any
21132114// filehandle is unused but forces FS_FOpenFileRead() to heed purecheck because it does not when filehandle is nullptr
21142115if ( cl_consoleFont->string [0 ] )
@@ -2148,6 +2149,7 @@ bool CL_InitRenderer()
21482149
21492150FS_FCloseFile ( f );
21502151}
2152+ #endif
21512153
21522154cls.whiteShader = re.RegisterShader ( " white" , RSF_NOMIP );
21532155
You can’t perform that action at this time.
0 commit comments