Fix compiler warnings.
Support sprite missing-texture errors.