aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Blok <jules.blok@gmail.com>2018-06-18 15:59:03 +0200
committergdkchan <gab.dark.100@gmail.com>2018-06-18 10:59:03 -0300
commit35e695552e75a20e54a2bd7fb372d0492c955ca1 (patch)
tree1cd472fc6dae110da7974a5fca4f34682814072d
parent46f18af6be4ac059dc28863ed1c5febfadaf07af (diff)
NvGpuEngine3d: Fix uploading vertex arrays without index buffers. (#173)
-rw-r--r--Ryujinx.HLE/Gpu/NvGpuEngine3d.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.HLE/Gpu/NvGpuEngine3d.cs b/Ryujinx.HLE/Gpu/NvGpuEngine3d.cs
index b3f1330b..deb622fe 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;