fix texture drawing