OSDN Git Service

st/nine: Fix remaining swapchain tests
authorPatrick Rudolph <siro@das-labor.org>
Thu, 22 Oct 2015 15:00:35 +0000 (17:00 +0200)
committerAxel Davy <axel.davy@ens.fr>
Thu, 4 Feb 2016 21:12:17 +0000 (22:12 +0100)
commitf481b9b952552da48af83e9fd041d73ba47b73f7
tree93fe508ac50497f49ecc6c11eb37139d869bd7f6
parentcbbd3c65cc6f9a9850b945bc3d56c1860836e26c
st/nine: Fix remaining swapchain tests

Return D3DERR_INVALIDCALL instead of E_POINTER.
On error set ppBackBuffer to NULL.

Multiple swapchains can only be created in windowed mode as
windowed swapchain.

Set backbuffer to NULL in NineDevice9_GetBackBuffer, but not
in NineSwapChain9_GetBackBuffer.

This fixes all WINE's device.c test_swapchain() tests.

Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/device9.c
src/gallium/state_trackers/nine/swapchain9.c