From cc7cae9d6baa411d7b2f8ff1b3a9825ae291ae32 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Wed, 13 Mar 2024 09:44:59 -0700 Subject: [PATCH] DrawIndexedPrimitives calls DrawInstancedPrimitives --- lib/RefreshCS | 2 +- src/Graphics/CommandBuffer.cs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/RefreshCS b/lib/RefreshCS index 995a54f..b92ecb6 160000 --- a/lib/RefreshCS +++ b/lib/RefreshCS @@ -1 +1 @@ -Subproject commit 995a54fa2df82946441c9ec6446d7cd12236f8f7 +Subproject commit b92ecb60e3f60c3cce694477cbde381449759c58 diff --git a/src/Graphics/CommandBuffer.cs b/src/Graphics/CommandBuffer.cs index d11ec6e..ce7c9ff 100644 --- a/src/Graphics/CommandBuffer.cs +++ b/src/Graphics/CommandBuffer.cs @@ -1297,12 +1297,13 @@ namespace MoonWorks.Graphics AssertGraphicsPipelineBound(); #endif - Refresh.Refresh_DrawIndexedPrimitives( + Refresh.Refresh_DrawInstancedPrimitives( Device.Handle, Handle, baseVertex, startIndex, - primitiveCount + primitiveCount, + 1 ); }