texture clamping bug fix