mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-21 07:50:35 +01:00
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:
parent
a52e700169
commit
eef0744d43
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue