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:
parent
31e442f11d
commit
76a2172cee
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue