summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2015-01-08 15:11:19 +0100
committerAxel Davy <[email protected]>2015-02-06 00:07:19 +0100
commit25f1e5584ceafe5a3f07309ac52885f10b16e86e (patch)
treeba45c46e05181bd3afc0a0322d539e88f786c872 /src
parent02a89dc163898b02b7ad2867359c1ee7a7574c1f (diff)
st/nine: NineDevice9_SetClipPlane: pPlane must be non-NULL
Reviewed-by: Tiziano Bacocco <[email protected]> Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/state_trackers/nine/device9.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/nine/device9.c b/src/gallium/state_trackers/nine/device9.c
index e4b2c90ac5d..a446c8f233c 100644
--- a/src/gallium/state_trackers/nine/device9.c
+++ b/src/gallium/state_trackers/nine/device9.c
@@ -1968,9 +1968,11 @@ NineDevice9_SetClipPlane( struct NineDevice9 *This,
{
struct nine_state *state = This->update;
- DBG("This=%p Index=%u pPlane=%p(%f %f %f %f)\n", This, Index, pPlane,
- pPlane ? pPlane[0] : 0.0f, pPlane ? pPlane[1] : 0.0f,
- pPlane ? pPlane[2] : 0.0f, pPlane ? pPlane[3] : 0.0f);
+ user_assert(pPlane, D3DERR_INVALIDCALL);
+
+ DBG("This=%p Index=%u pPlane=%f %f %f %f\n", This, Index,
+ pPlane[0], pPlane[1],
+ pPlane[2], pPlane[3]);
user_assert(Index < PIPE_MAX_CLIP_PLANES, D3DERR_INVALIDCALL);