From 6428e90fa24e4eb9f008a3bd40943200483209b9 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 cae3804c..ee4c6953 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 9aa65144..0e372127 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 41b8bc69..9b35e9fb 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