mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user