From 0cc018c23fe706c7192596647a2c3cf38b208b73 Mon Sep 17 00:00:00 2001 From: parax0 Date: Thu, 26 Nov 2015 04:09:33 -0700 Subject: [PATCH] Bugfix - clear tint color before drawing skybox --- Core/CRenderer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Core/CRenderer.cpp b/Core/CRenderer.cpp index ca529ec4..7445a4c4 100644 --- a/Core/CRenderer.cpp +++ b/Core/CRenderer.cpp @@ -297,6 +297,7 @@ void CRenderer::RenderSky(CModel *pSkyboxModel, const SViewInfo& ViewInfo) CGraphics::sMVPBlock.ModelMatrix = CMatrix4f::skIdentity; CGraphics::sVertexBlock.COLOR0_Amb = CVector4f(1.f, 1.f, 1.f, 1.f); CGraphics::sPixelBlock.TevColor = CVector4f(1.f, 1.f, 1.f, 1.f); + CGraphics::sPixelBlock.TintColor = CColor::skWhite.ToVector4f(); CGraphics::sNumLights = 0; CGraphics::UpdateVertexBlock(); CGraphics::UpdatePixelBlock();