more fixes: fixed line and point rendering

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5701 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Rodolfo Osvaldo Bogado 2010-06-14 22:06:12 +00:00
parent 31e442f11d
commit 76a2172cee
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}