From 9028c354e616afea8dbfa56cd2fc7026091b5e43 Mon Sep 17 00:00:00 2001 From: Ykkrosh Date: Fri, 13 Apr 2012 15:01:51 +0000 Subject: [PATCH] Fix non-PCH build more. Fixes #1313. This was SVN commit r11494. --- source/graphics/MaterialManager.cpp | 3 ++- source/graphics/ShaderDefines.cpp | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/source/graphics/MaterialManager.cpp b/source/graphics/MaterialManager.cpp index d46734066b..3cd9071804 100644 --- a/source/graphics/MaterialManager.cpp +++ b/source/graphics/MaterialManager.cpp @@ -26,6 +26,8 @@ #include "ps/XML/Xeromyces.h" #include "renderer/Renderer.h" +#include + CMaterial CMaterialManager::LoadMaterial(const VfsPath& pathname) { if (pathname.empty()) @@ -57,7 +59,6 @@ CMaterial CMaterialManager::LoadMaterial(const VfsPath& pathname) CMaterial material; XMBElement root = xeroFile.GetRoot(); - XMBElementList childNodes = root.GetChildNodes(); CPreprocessorWrapper preprocessor; preprocessor.AddDefine("CFG_FORCE_ALPHATEST", g_Renderer.m_Options.m_ForceAlphaTest ? "1" : "0"); diff --git a/source/graphics/ShaderDefines.cpp b/source/graphics/ShaderDefines.cpp index 28af3fbe8a..8763f3b332 100644 --- a/source/graphics/ShaderDefines.cpp +++ b/source/graphics/ShaderDefines.cpp @@ -22,6 +22,8 @@ #include "maths/Vector4D.h" #include "ps/ThreadUtil.h" +#include + size_t hash_value(const CStrIntern& v) { return v.GetHash();