summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexManagerBase.cpp
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2014-02-03 16:56:17 +0100
committerdegasus <wickmarkus@web.de>2014-02-15 11:33:43 +0100
commite5318d262428bda1a7c5c80eae117981384a7fe5 (patch)
tree7b149ddecd3d47343b28ecef0f3c33671ca013a8 /Source/Core/VideoCommon/VertexManagerBase.cpp
parent48798d8d3438c2ee1d08e4af9eb1d25860c9c538 (diff)
move shared parts from VertexManager::vFlush into VideoCommon
Diffstat (limited to 'Source/Core/VideoCommon/VertexManagerBase.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexManagerBase.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/VertexManagerBase.cpp b/Source/Core/VideoCommon/VertexManagerBase.cpp
index c4980ae190..cd2eec39ce 100644
--- a/Source/Core/VideoCommon/VertexManagerBase.cpp
+++ b/Source/Core/VideoCommon/VertexManagerBase.cpp
@@ -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;
}