summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/D3D/VertexManager.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2014-06-29 16:41:54 -0400
committerLioncash <mathew1800@gmail.com>2014-06-29 16:41:54 -0400
commitd720e3ed0be9b897e1b87d0cc04831e573617df2 (patch)
treec3da7fd7cf4138655a9a1f1b13a651e1a4cc6d1b /Source/Core/VideoBackends/D3D/VertexManager.cpp
parent933358a28c3a96b9b951481cf99a71fd2b68c280 (diff)
parent7db5a4b22db6cc7cea987a38d1d8ce9b0a594394 (diff)
Merge pull request #452 from degasus/stats
Video statistics update
Diffstat (limited to 'Source/Core/VideoBackends/D3D/VertexManager.cpp')
-rw-r--r--Source/Core/VideoBackends/D3D/VertexManager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoBackends/D3D/VertexManager.cpp b/Source/Core/VideoBackends/D3D/VertexManager.cpp
index 71e7d72b99..00e32ed871 100644
--- a/Source/Core/VideoBackends/D3D/VertexManager.cpp
+++ b/Source/Core/VideoBackends/D3D/VertexManager.cpp
@@ -145,7 +145,7 @@ void VertexManager::Draw(UINT stride)
{
D3D::context->IASetPrimitiveTopology(D3D11_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP);
D3D::context->DrawIndexed(IndexGenerator::GetIndexLen(), m_index_draw_offset, 0);
- INCSTAT(stats.thisFrame.numIndexedDrawCalls);
+ INCSTAT(stats.thisFrame.numDrawCalls);
}
else if (current_primitive_type == PRIMITIVE_LINES)
{
@@ -165,7 +165,7 @@ void VertexManager::Draw(UINT stride)
((DX11::Renderer*)g_renderer)->ApplyCullDisable(); // Disable culling for lines and points
D3D::context->IASetPrimitiveTopology(D3D11_PRIMITIVE_TOPOLOGY_LINELIST);
D3D::context->DrawIndexed(IndexGenerator::GetIndexLen(), m_index_draw_offset, 0);
- INCSTAT(stats.thisFrame.numIndexedDrawCalls);
+ INCSTAT(stats.thisFrame.numDrawCalls);
D3D::context->GSSetShader(nullptr, nullptr, 0);
((DX11::Renderer*)g_renderer)->RestoreCull();
@@ -189,7 +189,7 @@ void VertexManager::Draw(UINT stride)
((DX11::Renderer*)g_renderer)->ApplyCullDisable(); // Disable culling for lines and points
D3D::context->IASetPrimitiveTopology(D3D11_PRIMITIVE_TOPOLOGY_POINTLIST);
D3D::context->DrawIndexed(IndexGenerator::GetIndexLen(), m_index_draw_offset, 0);
- INCSTAT(stats.thisFrame.numIndexedDrawCalls);
+ INCSTAT(stats.thisFrame.numDrawCalls);
D3D::context->GSSetShader(nullptr, nullptr, 0);
((DX11::Renderer*)g_renderer)->RestoreCull();