mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
move shared parts from VertexManager::vFlush into VideoCommon
This commit is contained in:
parent
48798d8d34
commit
e5318d2624
6 changed files with 12 additions and 16 deletions
|
@ -11,6 +11,7 @@
|
|||
#include "RenderBase.h"
|
||||
#include "BPStructs.h"
|
||||
#include "XFMemory.h"
|
||||
#include "Debugger.h"
|
||||
|
||||
#include "VertexManagerBase.h"
|
||||
#include "MainBase.h"
|
||||
|
@ -216,8 +217,13 @@ void VertexManager::Flush()
|
|||
VertexShaderManager::SetConstants();
|
||||
PixelShaderManager::SetConstants();
|
||||
|
||||
bool useDstAlpha = !g_ActiveConfig.bDstAlphaPass && bpmem.dstalpha.enable && bpmem.blendmode.alphaupdate
|
||||
&& bpmem.zcontrol.pixel_format == PIXELFMT_RGBA6_Z24;
|
||||
|
||||
// TODO: need to merge more stuff into VideoCommon
|
||||
g_vertex_manager->vFlush();
|
||||
g_vertex_manager->vFlush(useDstAlpha);
|
||||
|
||||
GFX_DEBUGGER_PAUSE_AT(NEXT_FLUSH, true);
|
||||
|
||||
IsFlushed = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue