Add support for vertex base on indexed draws, fix index buffer first (untested) (#197)

This commit is contained in:
gdkchan 2018-06-28 20:48:18 -03:00 committed by GitHub
parent d9aa0f4cc4
commit 386e6937d6
3 changed files with 20 additions and 4 deletions

View file

@ -487,7 +487,9 @@ namespace Ryujinx.HLE.Gpu.Engines
if (IndexCount != 0)
{
Gpu.Renderer.Rasterizer.DrawElements(IndexPosition, IndexFirst, PrimType);
int VertexBase = ReadRegister(NvGpuEngine3dReg.VertexArrayElemBase);
Gpu.Renderer.Rasterizer.DrawElements(IndexPosition, IndexFirst, VertexBase, PrimType);
}
else
{