Skip to content

Commit 93491e7

Browse files
authored
GLTF Renderer: use primitive start vertex for non-indexed primitives
1 parent 72f4c0f commit 93491e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PBR/src/GLTF_PBR_Renderer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ void GLTF_PBR_Renderer::Render(IDeviceContext* pCtx,
774774
else
775775
{
776776
DrawAttribs drawAttrs{primitive.VertexCount, DRAW_FLAG_VERIFY_ALL};
777-
drawAttrs.StartVertexLocation = BaseVertex;
777+
drawAttrs.StartVertexLocation = BaseVertex + primitive.FirstVertex;
778778
pCtx->Draw(drawAttrs);
779779
}
780780
}

0 commit comments

Comments
 (0)