diff options
author | Vinson Lee <vlee@vmware.com> | 2010-02-14 22:58:26 -0800 |
---|---|---|
committer | Vinson Lee <vlee@vmware.com> | 2010-02-14 22:58:26 -0800 |
commit | 6536cdf1836a302d334f7380d1723e8f0bc396be (patch) | |
tree | 9961f4d3f5bf88237df2b21ab0fc30b4fbe6ddf8 /src/gallium/auxiliary | |
parent | 026d4b5b9129beb463d5ffa4d2ab6b0f73506627 (diff) | |
download | external_mesa3d-6536cdf1836a302d334f7380d1723e8f0bc396be.zip external_mesa3d-6536cdf1836a302d334f7380d1723e8f0bc396be.tar.gz external_mesa3d-6536cdf1836a302d334f7380d1723e8f0bc396be.tar.bz2 |
draw: Add assert to check input of memcpy.
Diffstat (limited to 'src/gallium/auxiliary')
-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 6bdd612..9085838 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); |