fixing directx texture rendering