[PATCH v4 2/7] d3dx10: Use shared code in load_texture_data() when possible.