glMultiDrawArraysIndirect issue

Hi I develop on nvidia and I want to put model’s data into an SSBO and material’s data into an another SSBO and getting the right material’s data with gl_DrawID and the right model’s data with gl_BaseInstance and gl_InstanceID.
But I’ve a strange bug when I want to draw the shadows. I have a depthTexture to avoid that shadows has drawn over my 2D tiles models. But when I use glMultiDrawArraysIndirect, the shadows has drawn but the depthTexture si empty so the shadows are drawn over my 2D tiles models.

It works well when I pass model’s data and material’s data into a VBO and when I use glDrawArrays. But the problem is that it consumes a lot of VRAM. (One material info per vertex is overkill)

Ok I set the old code and recoded the update and it’s working. I should I’ve made a mistake.