I found this bug playing
MC-17684 Entity shadows not rendered correctly
MC-18752 Entity shadows not rendered correctly after getting GL error due to compass in item frame