Skip to content

Commit d733b7f

Browse files
committed
now require dx95
1 parent ffe192e commit d733b7f

1 file changed

Lines changed: 8 additions & 12 deletions

File tree

src/game/client/viewrender.cpp

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2035,22 +2035,18 @@ void CViewRender::RenderView( const CViewSetup &viewRender, int nClearFlags, int
20352035
VPROF( "CViewRender::RenderView" );
20362036
tmZone( TELEMETRY_LEVEL0, TMZF_NONE, "%s", __FUNCTION__ );
20372037

2038-
// Don't want TF2 running less than DX 9
2039-
if ( g_pMaterialSystemHardwareConfig->GetDXSupportLevel() < 90 )
2038+
// Don't want TF2 running less than DX9.0c
2039+
if ( g_pMaterialSystemHardwareConfig->GetDXSupportLevel() < 95 )
20402040
{
2041-
// We know they were running at least 9.0 when the game started...we check the
2041+
// We know they were running at least 9.0c when the game started...we check the
20422042
// value in ClientDLL_Init()...so they must be messing with their DirectX settings.
2043-
const char* pGameDir = COM_GetModDirectory();
2044-
if ( ( Q_stricmp( pGameDir, "tc2" ) == 0 ) || ( Q_stricmp( pGameDir, "tf" ) == 0 ) || ( Q_stricmp( pGameDir, "tf_beta" ) == 0 ) )
2043+
static bool bFirstTime = true;
2044+
if ( bFirstTime )
20452045
{
2046-
static bool bFirstTime = true;
2047-
if ( bFirstTime )
2048-
{
2049-
bFirstTime = false;
2050-
Msg( "This game has a minimum requirement of DirectX 9.0 to run properly.\n" );
2051-
}
2052-
return;
2046+
bFirstTime = false;
2047+
Error( "This game has a minimum requirement of DirectX 9.0c to run properly.\n" );
20532048
}
2049+
return;
20542050
}
20552051

20562052
CMatRenderContextPtr pRenderContext( materials );

0 commit comments

Comments
 (0)