Right click Dock -> Edit Dock... -> Effects -> "Shadows" [disable that options group from its header]