summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/VertexManagerBase.cpp
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2012-12-21 21:04:53 +0100
committerdegasus <wickmarkus@web.de>2012-12-21 21:04:53 +0100
commit2df0c31d13372bc29d488cf7e80d4adb9cf28b46 (patch)
treee622f370d2a546749000dc3a75e297c6b37c921b /Source/Core/VideoCommon/Src/VertexManagerBase.cpp
parent2db4549174620aa130ef012af26c2e1760c4928c (diff)
add invalid flag for BPStructs (fix issue 5790)
this flag will be set on loading a state and checked before every rendering.
Diffstat (limited to 'Source/Core/VideoCommon/Src/VertexManagerBase.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/VertexManagerBase.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/Src/VertexManagerBase.cpp b/Source/Core/VideoCommon/Src/VertexManagerBase.cpp
index 4118e3dcbd..23f355fe3b 100644
--- a/Source/Core/VideoCommon/Src/VertexManagerBase.cpp
+++ b/Source/Core/VideoCommon/Src/VertexManagerBase.cpp
@@ -9,6 +9,7 @@
#include "NativeVertexFormat.h"
#include "TextureCacheBase.h"
#include "RenderBase.h"
+#include "BPStructs.h"
#include "VertexManagerBase.h"
#include "VideoConfig.h"
@@ -159,6 +160,9 @@ void VertexManager::AddVertices(int primitive, int numVertices)
void VertexManager::Flush()
{
+ // loading a state will invalidate BP, so check for it
+ BPReload();
+
g_vertex_manager->vFlush();
}