It breaks loading cube map in D3DX10GetImageInfoFromMemory().
I think a solution is using DdsDecoder_Wine_Initialize() in windowscodecs/imgfactory.c: find_decoder() if DdsDecoder_Initialize() fails, like:
hr = DdsDecoder_Initialize();(d3dx10 uses CreateDecoderFromStream() to create a decoder, CreateDecoderFromStream() invokes find_decoder())
if (FAILED(hr)) {
DdsDecoder_Wine_Initialize();
}
I was planning to add these code in a future patch. Now we can add it in this patch. What do you think?
tionality in d3dx10 that previously worked? My suggestion would be to move the code to DdsDecoder_Wine_Initialize, update d3dx10 to use this interface if available, then update the validation in DdsDecoder_In