<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>It breaks loading cube map in D3DX10GetImageInfoFromMemory().</p>
<p>I think a solution is using DdsDecoder_Wine_Initialize() in
windowscodecs/imgfactory.c: find_decoder() if
DdsDecoder_Initialize() fails, like:</p>
<blockquote>hr = DdsDecoder_Initialize();<br>
if (FAILED(hr)) {<br>
DdsDecoder_Wine_Initialize();<br>
}<br>
<br>
</blockquote>
(d3dx10 uses CreateDecoderFromStream() to create a decoder,
CreateDecoderFromStream() invokes find_decoder())<br>
<p>I was planning to add these code in a future patch. Now we can
add it in this patch. What do you think?</p>
<div class="moz-cite-prefix">On 7/15/20 9:41 AM, Esme Povirk
(they/them) wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAAFPtVSOGO_VhQ_Adt99wEr99cGqPvjFKOJZVS=jbNzFDYbXjw@mail.gmail.com">
<pre class="moz-quote-pre" wrap="">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</pre>
</blockquote>
</body>
</html>