[Fix] (Diligent/Shader): Try to bind varying in glsl str.

This commit is contained in:
BZLZHH
2025-06-29 11:42:38 +08:00
parent 8a0d00f94b
commit e1fd5678ec
4 changed files with 79 additions and 20 deletions
@@ -922,8 +922,7 @@ namespace MG_GL::GL {
}
void MultiDrawElementsBaseVertex(GLenum mode, const GLsizei *count, GLenum type, const GLvoid *const *indices, GLsizei drawcount, const GLint *basevertex) {
return;
// PrepareForDraw();
PrepareForDraw(mode, (GLsizei *)count, type, (const void*&)indices[0]);
auto* pVAO = MG_State_T::vertexArrayState->GetCurrentVAO();
Diligent::IBuffer* pIndexBuffer = nullptr;