Added a safeguard if using a null texture