Fix texture rendering