Same fix as 07d68ebc831472ecccb66d5d9eb9bb8fd5dd809e for smooth shadows disabled.