[PATCH v3 3/4] d3dx10: Handle format converting for D3DX10CreateTextureFromMemory.