Improve yup to rgb shader.
Fix a crash.