From 492af0d5d12aac83650634752ecbf006cb1a9713 Mon Sep 17 00:00:00 2001 From: Amos Date: Wed, 27 Dec 2023 13:22:33 +0100 Subject: [PATCH] Fix dedicated compile errors --- src/engine/client/cdll_engine_int.cpp | 2 ++ src/engine/host.cpp | 2 ++ src/materialsystem/cmaterialsystem.cpp | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/engine/client/cdll_engine_int.cpp b/src/engine/client/cdll_engine_int.cpp index a412d110..b835c39c 100644 --- a/src/engine/client/cdll_engine_int.cpp +++ b/src/engine/client/cdll_engine_int.cpp @@ -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 diff --git a/src/engine/host.cpp b/src/engine/host.cpp index e1b83133..e65129b5 100644 --- a/src/engine/host.cpp +++ b/src/engine/host.cpp @@ -47,7 +47,9 @@ Services environments) void Host_CountRealTimePackets() { v_Host_CountRealTimePackets(); +#ifndef DEDICATED GFX_SetLatencyMarker(D3D11Device(), SIMULATION_START, MaterialSystem()->GetCurrentFrameCount()); +#endif // !DEDICATED } /* diff --git a/src/materialsystem/cmaterialsystem.cpp b/src/materialsystem/cmaterialsystem.cpp index f3a96579..c85ef6de 100644 --- a/src/materialsystem/cmaterialsystem.cpp +++ b/src/materialsystem/cmaterialsystem.cpp @@ -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); }