diff options
| author | Tillmann Karras <tilkax@gmail.com> | 2015-01-31 09:23:50 +0100 |
|---|---|---|
| committer | Tillmann Karras <tilkax@gmail.com> | 2015-01-31 09:23:50 +0100 |
| commit | 1aac65f9880787ef8a68131429f4f71cacbee838 (patch) | |
| tree | 5f0a070ead9c5897cedbd16f80802a0998802fdc /Source/Core/VideoCommon/VertexLoaderManager.cpp | |
| parent | d50b330d578fd4dffea6c150981a447bc34428bb (diff) | |
VertexLoaderManager: assimilate GetVertexSize()
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoaderManager.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoaderManager.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/Source/Core/VideoCommon/VertexLoaderManager.cpp b/Source/Core/VideoCommon/VertexLoaderManager.cpp index e0115a0d29..c15cadd267 100644 --- a/Source/Core/VideoCommon/VertexLoaderManager.cpp +++ b/Source/Core/VideoCommon/VertexLoaderManager.cpp @@ -138,18 +138,18 @@ static VertexLoaderBase* RefreshLoader(int vtx_attr_group, bool preprocess = fal return loader; } -int RunVertices(int vtx_attr_group, int primitive, int count, DataReader src, bool skip_drawing) +int RunVertices(int vtx_attr_group, int primitive, int count, DataReader src, bool skip_drawing, bool is_preprocess) { if (!count) return 0; - VertexLoaderBase* loader = RefreshLoader(vtx_attr_group); + VertexLoaderBase* loader = RefreshLoader(vtx_attr_group, is_preprocess); int size = count * loader->m_VertexSize; if ((int)src.size() < size) return -1; - if (skip_drawing) + if (skip_drawing || is_preprocess) return size; // If the native vertex format changed, force a flush. @@ -175,11 +175,6 @@ int RunVertices(int vtx_attr_group, int primitive, int count, DataReader src, bo return size; } -int GetVertexSize(int vtx_attr_group, bool preprocess) -{ - return RefreshLoader(vtx_attr_group, preprocess)->m_VertexSize; -} - NativeVertexFormat* GetCurrentVertexFormat() { return s_current_vtx_fmt; |
