[PATCH v2 4/8] d3dx10: Validate some input arguments in D3DX10LoadTextureFromTexture().