diff --git a/src/common/engine/m_joy.cpp b/src/common/engine/m_joy.cpp index 107560d4d..c20b406c7 100644 --- a/src/common/engine/m_joy.cpp +++ b/src/common/engine/m_joy.cpp @@ -38,6 +38,7 @@ #include "gameconfigfile.h" #include "d_event.h" #include "cmdlib.h" +#include "printf.h" // MACROS ------------------------------------------------------------------ diff --git a/src/common/rendering/hwrenderer/data/hw_renderstate.h b/src/common/rendering/hwrenderer/data/hw_renderstate.h index 07265ca29..1b953b37d 100644 --- a/src/common/rendering/hwrenderer/data/hw_renderstate.h +++ b/src/common/rendering/hwrenderer/data/hw_renderstate.h @@ -500,6 +500,12 @@ public: mStreamData.uTextureBlendColor = texfx->BlendColor; } } + void SetTextureColors(float* modColor, float* addColor, float* blendColor) + { + mStreamData.uTextureAddColor.SetFlt(addColor[0], addColor[1], addColor[2], addColor[3]); + mStreamData.uTextureModulateColor.SetFlt(modColor[0], modColor[1], modColor[2], modColor[3]); + mStreamData.uTextureBlendColor.SetFlt(blendColor[0], blendColor[1], blendColor[2], blendColor[3]); + } void SetFog(PalEntry c, float d) {