From 76a2172ceee62b08a0abb2080344150c9e3831d0 Mon Sep 17 00:00:00 2001 From: Rodolfo Osvaldo Bogado Date: Mon, 14 Jun 2010 22:06:12 +0000 Subject: [PATCH] more fixes: fixed line and point rendering git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5701 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoDX11/Src/VertexManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Plugins/Plugin_VideoDX11/Src/VertexManager.cpp b/Source/Plugins/Plugin_VideoDX11/Src/VertexManager.cpp index 8f879dfe49..99882adf90 100644 --- a/Source/Plugins/Plugin_VideoDX11/Src/VertexManager.cpp +++ b/Source/Plugins/Plugin_VideoDX11/Src/VertexManager.cpp @@ -275,7 +275,7 @@ inline void Draw(unsigned int stride, bool alphapass) if (!alphapass) { D3D::context->Map(lineindexbuffer, 0, D3D11_MAP_WRITE_DISCARD, 0, &map); - memcpy(map.pData, LIBuffer, 2*2*IndexGenerator::GetNumTriangles()); + memcpy(map.pData, LIBuffer, 2*2*IndexGenerator::GetNumLines()); D3D::context->Unmap(lineindexbuffer, 0); } @@ -291,7 +291,7 @@ inline void Draw(unsigned int stride, bool alphapass) if (!alphapass) { D3D::context->Map(pointindexbuffer, 0, D3D11_MAP_WRITE_DISCARD, 0, &map); - memcpy(map.pData, PIBuffer, 2*IndexGenerator::GetNumTriangles()); + memcpy(map.pData, PIBuffer, 2*IndexGenerator::GetNumPoints()); D3D::context->Unmap(pointindexbuffer, 0); }