From 398e79a90394f3050c023ed83cb03a88242f357d Mon Sep 17 00:00:00 2001 From: nillerusr Date: Fri, 3 Feb 2023 03:40:57 +0300 Subject: [PATCH] fix dedicated build caused by previous commit --- appframework/posixapp.cpp | 3 +++ materialsystem/cmatrendercontext.cpp | 2 ++ tier2/renderutils.cpp | 2 ++ 3 files changed, 7 insertions(+) diff --git a/appframework/posixapp.cpp b/appframework/posixapp.cpp index cae3804c3a..ee4c695349 100644 --- a/appframework/posixapp.cpp +++ b/appframework/posixapp.cpp @@ -14,7 +14,10 @@ #include "filesystem_init.h" #include "tier1/convar.h" #include "vstdlib/cvar.h" + +#ifndef DEDICATED #include "togl/rendermechanism.h" +#endif // NOTE: This has to be the last file included! (turned off below, since this is included like a header) #include "tier0/memdbgon.h" diff --git a/materialsystem/cmatrendercontext.cpp b/materialsystem/cmatrendercontext.cpp index 9aa6514408..0e3721278b 100644 --- a/materialsystem/cmatrendercontext.cpp +++ b/materialsystem/cmatrendercontext.cpp @@ -18,7 +18,9 @@ #include "ctype.h" #include "tier1/fmtstr.h" +#ifndef DEDICATED #include "togl/rendermechanism.h" +#endif // NOTE: This must be the last file included!!! #include "tier0/memdbgon.h" diff --git a/tier2/renderutils.cpp b/tier2/renderutils.cpp index 41b8bc69c8..9b35e9fbac 100644 --- a/tier2/renderutils.cpp +++ b/tier2/renderutils.cpp @@ -12,7 +12,9 @@ #include "materialsystem/imaterial.h" #include "tier0/vprof.h" #include "tier0/basetypes.h" +#ifndef DEDICATED #include "togl/rendermechanism.h" +#endif #if !defined(M_PI) #define M_PI 3.14159265358979323846