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