st/nine: Improve return error code in CheckDeviceFormat
This seems suspicious, but is better than what we currently do. Signed-off-by: Axel Davy <davyaxel0@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5015>
This commit is contained in:
parent
54a7a69085
commit
5d904d2749
|
@ -297,7 +297,9 @@ NineAdapter9_CheckDeviceFormat( struct NineAdapter9 *This,
|
|||
DBG("Usage=%x RType=%u CheckFormat=%s\n", Usage, RType,
|
||||
d3dformat_to_string(CheckFormat));
|
||||
|
||||
user_assert(display_format(AdapterFormat, FALSE), D3DERR_INVALIDCALL);
|
||||
/* Wine tests, but suspicious. Needs more tests. */
|
||||
user_assert(adapter_format(AdapterFormat), D3DERR_INVALIDCALL);
|
||||
user_assert(display_format(AdapterFormat, FALSE), D3DERR_NOTAVAILABLE);
|
||||
|
||||
hr = NineAdapter9_GetScreen(This, DeviceType, &screen);
|
||||
if (FAILED(hr))
|
||||
|
|
Loading…
Reference in New Issue