diff --git a/PBR/src/GLTF_PBR_Renderer.cpp b/PBR/src/GLTF_PBR_Renderer.cpp index 421745be..3a3fa447 100644 --- a/PBR/src/GLTF_PBR_Renderer.cpp +++ b/PBR/src/GLTF_PBR_Renderer.cpp @@ -316,6 +316,9 @@ void GLTF_PBR_Renderer::Render(IDeviceContext* pCtx, // Render mesh primitives for (const auto& primitive : Mesh.Primitives) { + if (primitive.VertexCount == 0 && primitive.IndexCount == 0) + continue; + const auto& material = GLTFModel.Materials[primitive.MaterialId]; if (material.Attribs.AlphaMode != AlphaMode) continue;