materialsystem/shaderapidx9/shaderapidx8.cpp
void CShaderAPIDx8::OverrideCaps( int nForcedDXLevel )
{
	// Just use the actual caps if we can't use what was requested or if the default is requested
	if ( nForcedDXLevel <= 0 ) 
	{
		nForcedDXLevel = g_pHardwareConfig->ActualCaps().m_nDXSupportLevel;
	}
	nForcedDXLevel = g_pShaderDeviceMgr->GetClosestActualDXLevel( nForcedDXLevel );

	g_pHardwareConfig->SetupHardwareCaps( nForcedDXLevel, g_pHardwareConfig->ActualCaps() );
}
//-----------------------------------------------------------------------------
// Override caps based on a particular dx level
//-----------------------------------------------------------------------------
Override caps based on a particular dx level
Override caps based on a particular dx level
void CShaderAPIDx8::OverrideCaps( int nForcedDXLevel )
{
	if ( nForcedDXLevel <= 0 ) 
	{
		nForcedDXLevel = g_pHardwareConfig->ActualCaps().m_nDXSupportLevel;
	}
	nForcedDXLevel = g_pShaderDeviceMgr->GetClosestActualDXLevel( nForcedDXLevel );
	g_pHardwareConfig->SetupHardwareCaps( nForcedDXLevel, g_pHardwareConfig->ActualCaps() );
}
void CShaderAPIDx8 :: OverrideCaps ( int nForcedDXLevel ) { if ( nForcedDXLevel <= 0 ) { nForcedDXLevel = g_pHardwareConfig -> ActualCaps ( ) . m_nDXSupportLevel ; } nForcedDXLevel = g_pShaderDeviceMgr -> GetClosestActualDXLevel ( nForcedDXLevel ) ; g_pHardwareConfig -> SetupHardwareCaps ( nForcedDXLevel , g_pHardwareConfig -> ActualCaps ( ) ) ; }
Override caps based on a particular dx level
Override caps based on a particular dx level
// Just use the actual caps if we can't use what was requested or if the default is requested