move shared parts from VertexManager::vFlush into VideoCommon

This commit is contained in:
degasus
2014-02-03 16:56:17 +01:00
parent 48798d8d34
commit e5318d2624
6 changed files with 12 additions and 16 deletions

View File

@ -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;
}

View File

@ -58,7 +58,7 @@ private:
//virtual void Draw(u32 stride, bool alphapass) = 0;
// temp
virtual void vFlush() = 0;
virtual void vFlush(bool useDstAlpha) = 0;
};
extern VertexManager *g_vertex_manager;