mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-27 02:30:40 +01:00
draw: Add assert to check input of memcpy.
This commit is contained in:
parent
026d4b5b91
commit
6536cdf183
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue