diff options
author | Vinson Lee <[email protected]> | 2010-02-14 22:58:26 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2010-02-14 22:58:26 -0800 |
commit | 6536cdf1836a302d334f7380d1723e8f0bc396be (patch) | |
tree | 9961f4d3f5bf88237df2b21ab0fc30b4fbe6ddf8 /src/gallium/auxiliary/draw | |
parent | 026d4b5b9129beb463d5ffa4d2ab6b0f73506627 (diff) |
draw: Add assert to check input of memcpy.
Diffstat (limited to 'src/gallium/auxiliary/draw')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_vs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_vs.c b/src/gallium/auxiliary/draw/draw_vs.c index 6bdd612e6f4..90858380221 100644 --- a/src/gallium/auxiliary/draw/draw_vs.c +++ b/src/gallium/auxiliary/draw/draw_vs.c @@ -61,6 +61,7 @@ draw_vs_set_constants(struct draw_context *draw, } draw->vs.aligned_constant_storage[slot] = align_malloc(size, 16); } + assert(constants); memcpy((void *)draw->vs.aligned_constant_storage[slot], constants, size); |