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:
Axel Davy 2019-06-04 00:37:28 +02:00 committed by Marge Bot
parent 54a7a69085
commit 5d904d2749
1 changed files with 3 additions and 1 deletions

View File

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