st/nine: More checks for GetRenderTargetData

Fixes a wine test crash

Signed-off-by: Axel Davy <axel.davy@ens.fr>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
This commit is contained in:
Axel Davy
2016-10-02 12:14:03 +02:00
parent a52e700169
commit eef0744d43

View File

@@ -1455,6 +1455,8 @@ NineDevice9_GetRenderTargetData( struct NineDevice9 *This,
DBG("This=%p pRenderTarget=%p pDestSurface=%p\n",
This, pRenderTarget, pDestSurface);
user_assert(pRenderTarget && pDestSurface, D3DERR_INVALIDCALL);
user_assert(dst->desc.Pool == D3DPOOL_SYSTEMMEM, D3DERR_INVALIDCALL);
user_assert(src->desc.Pool == D3DPOOL_DEFAULT, D3DERR_INVALIDCALL);