summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexLoaderManager.cpp
diff options
context:
space:
mode:
authorDolphin Bot <dolphin-emu-bot@users.noreply.github.com>2014-09-04 18:27:19 +0200
committerDolphin Bot <dolphin-emu-bot@users.noreply.github.com>2014-09-04 18:27:19 +0200
commit830a03c540c8c76023cd66751c735dc50245e473 (patch)
tree1cdd2a15d0984b46d3e6088d9fbc5e7a2eaa5c14 /Source/Core/VideoCommon/VertexLoaderManager.cpp
parentaf7881474edb90a243031314f81a0a7e2ab92fb2 (diff)
parent8b84ddce9a3e9c889996e2022279f78ef7a4ab5c (diff)
Merge pull request #957 from degasus/frame_skipping
VideoCommon: rewrite frame skipping code
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoaderManager.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexLoaderManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/VertexLoaderManager.cpp b/Source/Core/VideoCommon/VertexLoaderManager.cpp
index 7ff21d103b..873590b1c2 100644
--- a/Source/Core/VideoCommon/VertexLoaderManager.cpp
+++ b/Source/Core/VideoCommon/VertexLoaderManager.cpp
@@ -151,7 +151,7 @@ static VertexLoaderCacheItem RefreshLoader(int vtx_attr_group)
return s_VertexLoaders[vtx_attr_group];
}
-bool RunVertices(int vtx_attr_group, int primitive, int count, size_t buf_size)
+bool RunVertices(int vtx_attr_group, int primitive, int count, size_t buf_size, bool skip_drawing)
{
if (!count)
return true;
@@ -161,7 +161,7 @@ bool RunVertices(int vtx_attr_group, int primitive, int count, size_t buf_size)
if (buf_size < size)
return false;
- if (bpmem.genMode.cullmode == GenMode::CULL_ALL && primitive < 5)
+ if (skip_drawing || (bpmem.genMode.cullmode == GenMode::CULL_ALL && primitive < 5))
{
// if cull mode is CULL_ALL, ignore triangles and quads
DataSkip((u32)size);