st/nine: NineDevice9_SetClipPlane: pPlane must be non-NULL
authorAxel Davy <axel.davy@ens.fr>
Thu, 8 Jan 2015 14:11:19 +0000 (15:11 +0100)
committerAxel Davy <axel.davy@ens.fr>
Thu, 5 Feb 2015 23:07:19 +0000 (00:07 +0100)
Reviewed-by: Tiziano Bacocco <tizbac2@gmail.com>
Signed-off-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/device9.c

index e4b2c90ac5d56a3a940682a7732db5e8c9882e00..a446c8f233c197d4d0b28e1adc78765ccad1748c 100644 (file)
@@ -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);