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:
Józef Kucia 2018-09-17 11:06:22 +02:00 committed by Alexandre Julliard
parent 86f0fe9889
commit 62d1b64333
1 changed files with 2 additions and 2 deletions

View File

@ -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;