fix warnings in directx9 render