From e77d8519a2574c6903a16f2a2ce5c88125d86f2a Mon Sep 17 00:00:00 2001 From: SysRay Date: Mon, 27 May 2024 17:53:04 +0200 Subject: [PATCH] sceGnmDrawIndexOffset use correct values --- modules/libSceGraphicsDriver/entry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/libSceGraphicsDriver/entry.cpp b/modules/libSceGraphicsDriver/entry.cpp index 5fda7e6..c59a59e 100644 --- a/modules/libSceGraphicsDriver/entry.cpp +++ b/modules/libSceGraphicsDriver/entry.cpp @@ -197,8 +197,8 @@ int SYSV_ABI sceGnmDrawIndexOffset(uint32_t* cmdOut, uint64_t size, uint32_t ind LOG_TRACE(L"%S 0x%08llx %u", __FUNCTION__, (uint64_t)cmdOut, size); cmdOut[0] = Pm4::create(size, Pm4::Custom::R_DRAW_INDEX_OFFSET); - cmdOut[1] = index_offset; - cmdOut[2] = index_count; + cmdOut[1] = index_count; + cmdOut[2] = index_offset; cmdOut[3] = flags; cmdOut[4] = 0; cmdOut[5] = 0;