From d3b94dd1c6a1cd6f8ad0e2b701f26748943a6d27 Mon Sep 17 00:00:00 2001 From: BZLZHH Date: Sat, 21 Jun 2025 12:24:02 +0800 Subject: [PATCH] [Fix] (Diligent/Drawing): Set IBO in glMultiDrawElementsBaseVertex. --- MG/MG_GL/Implementations/GL/Drawing/GL_Drawing.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/MG/MG_GL/Implementations/GL/Drawing/GL_Drawing.cpp b/MG/MG_GL/Implementations/GL/Drawing/GL_Drawing.cpp index 3556de33..0a626472 100644 --- a/MG/MG_GL/Implementations/GL/Drawing/GL_Drawing.cpp +++ b/MG/MG_GL/Implementations/GL/Drawing/GL_Drawing.cpp @@ -841,6 +841,12 @@ namespace MG_GL::GL { return; } + MG_Diligent::g_pContext->SetIndexBuffer( + pIndexBuffer, + 0, + Diligent::RESOURCE_STATE_TRANSITION_MODE_TRANSITION + ); + std::vector drawItems; drawItems.reserve(drawcount);