Fix dedicated compile errors

This commit is contained in:
Amos 2023-12-27 13:22:33 +01:00 committed by Kawe Mazidjatari
parent abe6d10830
commit 35bec64a5f
3 changed files with 6 additions and 0 deletions

View File

@ -15,7 +15,9 @@
#include "geforce/reflex.h"
#include "vengineclient_impl.h"
#include "cdll_engine_int.h"
#ifndef DEDICATED
#include "materialsystem/cmaterialsystem.h"
#endif // !DEDICATED
/*****************************************************************************/
#ifndef DEDICATED

View File

@ -47,7 +47,9 @@ Services environments)
void Host_CountRealTimePackets()
{
v_Host_CountRealTimePackets();
#ifndef DEDICATED
GFX_SetLatencyMarker(D3D11Device(), SIMULATION_START, MaterialSystem()->GetCurrentFrameCount());
#endif // !DEDICATED
}
/*

View File

@ -54,10 +54,12 @@ InitReturnVal_t CMaterialSystem::Init(CMaterialSystem* thisptr)
//-----------------------------------------------------------------------------
int CMaterialSystem::Shutdown(CMaterialSystem* thisptr)
{
#ifndef MATERIALSYSTEM_NODX
if (GFX_IsLowLatencySDKEnabled())
{
PCLSTATS_SHUTDOWN();
}
#endif
return CMaterialSystem__Shutdown(thisptr);
}