What prompts Hamlet's outburst at Ophelia's graveside?

Hamlet sees Laertes acting like a jerk, putting on a big show of grief, with himself the center of attention, instead of being properly respectful for Ophelia's funeral service. It makes Hamlet angry.