From 937cab736b04975267b6a44b983b002edcad0644 Mon Sep 17 00:00:00 2001 From: BZLZHH Date: Sun, 15 Jun 2025 08:13:22 +0800 Subject: [PATCH] [Feat] (Diligent/Drawing): Handle uint8 in MultiDrawElementsBaseVertex. --- MG/MG_GL/Implementations/GL/Drawing/GL_Drawing.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/MG/MG_GL/Implementations/GL/Drawing/GL_Drawing.cpp b/MG/MG_GL/Implementations/GL/Drawing/GL_Drawing.cpp index 9d23a56d..23593eae 100644 --- a/MG/MG_GL/Implementations/GL/Drawing/GL_Drawing.cpp +++ b/MG/MG_GL/Implementations/GL/Drawing/GL_Drawing.cpp @@ -692,6 +692,7 @@ namespace MG_GL::GL { Diligent::VALUE_TYPE indexType = ConvertGLTypeToDiligent(type); Diligent::Uint32 indexSize = 0; switch (indexType) { + case Diligent::VT_UINT8: indexSize = 1; break; case Diligent::VT_UINT16: indexSize = 2; break; case Diligent::VT_UINT32: indexSize = 4; break; default: