diff options
author | José Fonseca <[email protected]> | 2010-01-14 15:07:20 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2010-01-18 20:34:19 -0800 |
commit | bcadde2068563b818a280e40e6189191e10fd371 (patch) | |
tree | 9ab5883fa94895c0666a04fae5b3813b5b814304 /src/gallium/auxiliary | |
parent | dc298559c6c838d8ad744e07c134a1c8846c9b33 (diff) |
pipebuffer: Ensure buffer size/alignment is not zero.
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c index 6e3214ca9c9..8f74180a111 100644 --- a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c +++ b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c @@ -371,6 +371,9 @@ pb_debug_manager_create_buffer(struct pb_manager *_mgr, struct pb_desc real_desc; pb_size real_size; + assert(size); + assert(desc->alignment); + buf = CALLOC_STRUCT(pb_debug_buffer); if(!buf) return NULL; |