texture: Implement handling of rendering error.