diff --git a/code/cgame/cg_main.c b/code/cgame/cg_main.c index d2a7541..8ecb59f 100644 --- a/code/cgame/cg_main.c +++ b/code/cgame/cg_main.c @@ -1157,6 +1157,10 @@ void CG_Init( int serverMessageNum, int serverCommandSequence ) { cgs.redflag = cgs.blueflag = -1; // For compatibily, default to unset for // old servers + // indicate to engine that engine-based aspect correction shouldn't be used + // should be called ahead of trap_GetGlconfig + VMExt_GVCommandInt( "register_aspect_aware", 0 ); + // get the rendering configuration from the client system trap_GetGlconfig( &cgs.glconfig ); AspectCorrect_Init( cgs.glconfig.vidWidth, cgs.glconfig.vidHeight ); diff --git a/code/ui/ui_atoms.c b/code/ui/ui_atoms.c index b51bc4d..3423859 100644 --- a/code/ui/ui_atoms.c +++ b/code/ui/ui_atoms.c @@ -1375,6 +1375,10 @@ void UI_Init( void ) { UI_InitGameinfo(); + // indicate to engine that engine-based aspect correction shouldn't be used + // should be called ahead of trap_GetGlconfig + VMExt_GVCommandInt( "register_aspect_aware", 0 ); + // cache redundant calulations trap_GetGlconfig( &uis.glconfig ); AspectCorrect_Init( uis.glconfig.vidWidth, uis.glconfig.vidHeight );