egl: Fix missing clamping in eglSetDamageRegionKHR
authorHarish Krupo <harish.krupo.kps@intel.com>
Sun, 8 Jul 2018 07:23:00 +0000 (12:53 +0530)
committerEric Engestrom <eric.engestrom@intel.com>
Tue, 24 Jul 2018 13:46:21 +0000 (14:46 +0100)
commitfd734608c3c40a1a93c6becaced69ddd04d4cf9a
tree5014c9dc32cd79ede49d3de1fd58b960ed3d5b8f
parentc3eaf8fe5746e5b29a46a076247ba072c84e2ec5
egl: Fix missing clamping in eglSetDamageRegionKHR

Clamp the x and y co-ordinates of the rectangles.

v2: Clamp width/height after converting to co-ordinates
    (Ilia Merkin)

Signed-off-by: Harish Krupo <harish.krupo.kps@intel.com>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
src/egl/main/eglapi.c