fixing directx warnings