Fix GLESv2_enc subtraction not protected

The pixelRowSize smaller than width * bpp will result in
a negative number of pixelRowSize - width * bpp.
The rowSlack as an array size cannot be negative.
Modify != to >, rowSlack will not be negative number.

Test: mmm device/generic/goldfish-opengl, presubmit check.

Change-Id: Ib4ebe679a12ef00802dc372f720c05f48474ef4e
Signed-off-by: Li Huihui <>
1 file changed