Fix warnings in DisableShadows