Commit 62d1b643 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

wined3d: Use get_format_internal() to get WINED3DFMT_UNKNOWN.

parent 86f0fe98
......@@ -3982,7 +3982,7 @@ const struct wined3d_format *wined3d_get_format(const struct wined3d_adapter *ad
{
FIXME("Can't find format %s (%#x) in the format lookup table.\n",
debug_d3dformat(format_id), format_id);
return &adapter->formats[get_format_idx(WINED3DFMT_UNKNOWN)];
return get_format_internal(adapter, WINED3DFMT_UNKNOWN);
}
format = &adapter->formats[idx];
......@@ -3997,7 +3997,7 @@ const struct wined3d_format *wined3d_get_format(const struct wined3d_adapter *ad
FIXME("Cannot find depth/stencil typeless format %s (%#x).\n",
debug_d3dformat(format_id), format_id);
return &adapter->formats[get_format_idx(WINED3DFMT_UNKNOWN)];
return get_format_internal(adapter, WINED3DFMT_UNKNOWN);
}
return format;
......
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