mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 13:00:09 +01:00
clover: Fix typo in validate_object()
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
This commit is contained in:
parent
9477d8c862
commit
8d8d0cb09e
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ namespace {
|
|||
throw error(CL_INVALID_VALUE);
|
||||
|
||||
// ...and within the specified object.
|
||||
if (dot(pitch, origin) + size(pitch, origin) > mem.size())
|
||||
if (dot(pitch, origin) + size(pitch, region) > mem.size())
|
||||
throw error(CL_INVALID_VALUE);
|
||||
|
||||
if (any_of(is_zero(), region))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue