mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 08:50:09 +01:00
pipebuffer: Ensure buffer size/alignment is not zero.
This commit is contained in:
parent
dc298559c6
commit
bcadde2068
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue