Commit d3f5b69b authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

d3dx10: Try loading the resource as bitmap in D3DX10CreateAsyncResourceLoader.

parent 8ed99016
......@@ -345,6 +345,8 @@ HRESULT WINAPI D3DX10CreateAsyncResourceLoaderA(HMODULE module, const char *reso
return E_OUTOFMEMORY;
if (!(rsrc = FindResourceA(module, resource, (const char *)RT_RCDATA)))
rsrc = FindResourceA(module, resource, (const char *)RT_BITMAP);
if (!rsrc)
{
WARN("Failed to find resource.\n");
HeapFree(GetProcessHeap(), 0, object);
......@@ -377,6 +379,8 @@ HRESULT WINAPI D3DX10CreateAsyncResourceLoaderW(HMODULE module, const WCHAR *res
return E_OUTOFMEMORY;
if (!(rsrc = FindResourceW(module, resource, (const WCHAR *)RT_RCDATA)))
rsrc = FindResourceW(module, resource, (const WCHAR *)RT_BITMAP);
if (!rsrc)
{
WARN("Failed to find resource.\n");
HeapFree(GetProcessHeap(), 0, object);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment