wined3d: Use get_format_internal() to get WINED3DFMT_UNKNOWN.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
86f0fe9889
commit
62d1b64333
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue