summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAxel Davy <axel.davy@ens.fr>2016-10-02 12:14:03 +0200
committerAxel Davy <axel.davy@ens.fr>2016-10-10 23:43:51 +0200
commiteef0744d4384a48c70da3f9863a02ceab08c97bb (patch)
tree846e0f39fb8367bb386fc89c310ec39b6a3eef1e
parenta52e700169066c7c2b4a26230f66f77db702af82 (diff)
downloadexternal_mesa3d-eef0744d4384a48c70da3f9863a02ceab08c97bb.zip
external_mesa3d-eef0744d4384a48c70da3f9863a02ceab08c97bb.tar.gz
external_mesa3d-eef0744d4384a48c70da3f9863a02ceab08c97bb.tar.bz2
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>
-rw-r--r--src/gallium/state_trackers/nine/device9.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/nine/device9.c b/src/gallium/state_trackers/nine/device9.c
index b094ede..c0a3c39 100644
--- a/src/gallium/state_trackers/nine/device9.c
+++ b/src/gallium/state_trackers/nine/device9.c
@@ -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);