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);