mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
add invalid flag for BPStructs (fix issue 5790)
this flag will be set on loading a state and checked before every rendering.
This commit is contained in:
parent
2db4549174
commit
2df0c31d13
4 changed files with 51 additions and 31 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue