From 35e695552e75a20e54a2bd7fb372d0492c955ca1 Mon Sep 17 00:00:00 2001 From: Jules Blok Date: Mon, 18 Jun 2018 15:59:03 +0200 Subject: [PATCH] NvGpuEngine3d: Fix uploading vertex arrays without index buffers. (#173) --- Ryujinx.HLE/Gpu/NvGpuEngine3d.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ryujinx.HLE/Gpu/NvGpuEngine3d.cs b/Ryujinx.HLE/Gpu/NvGpuEngine3d.cs index b3f1330b7f..deb622fef4 100644 --- a/Ryujinx.HLE/Gpu/NvGpuEngine3d.cs +++ b/Ryujinx.HLE/Gpu/NvGpuEngine3d.cs @@ -345,7 +345,7 @@ namespace Ryujinx.HLE.Gpu throw new InvalidOperationException(); } - if (IndexSize != 0) + if (IndexCount != 0) { int IbSize = IndexCount * IndexSize;