summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/VertexManagerBase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoCommon/Src/VertexManagerBase.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/VertexManagerBase.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/Src/VertexManagerBase.cpp b/Source/Core/VideoCommon/Src/VertexManagerBase.cpp
index a9b50bc6e2..004b0f3cca 100644
--- a/Source/Core/VideoCommon/Src/VertexManagerBase.cpp
+++ b/Source/Core/VideoCommon/Src/VertexManagerBase.cpp
@@ -11,6 +11,7 @@
#include "RenderBase.h"
#include "VertexManagerBase.h"
+#include "VideoConfig.h"
VertexManager *g_vertex_manager;
@@ -158,6 +159,16 @@ void VertexManager::AddVertices(int primitive, int numVertices)
void VertexManager::Flush()
{
+ // Disable Lighting
+ // TODO - Is this a good spot for this code?
+ if (g_ActiveConfig.bDisableLighting)
+ {
+ for (u32 i = 0; i < xfregs.numChan.numColorChans; i++)
+ {
+ xfregs.alpha[i].enablelighting = false;
+ xfregs.color[i].enablelighting = false;
+ }
+ }
g_vertex_manager->vFlush();
}