egl: compare the whole list of attributes
authorEric Engestrom <eric.engestrom@intel.com>
Thu, 6 Jun 2019 20:30:49 +0000 (21:30 +0100)
committerEric Engestrom <eric@engestrom.ch>
Tue, 11 Jun 2019 12:18:09 +0000 (12:18 +0000)
commit773ff93bc4b51c051f49c1c5198f56f5cea6665b
tree5677b75f3ca2c1d45210fafb6d2a91b59cecefaa
parent3fb7b1fd350246c09ef014a9fb8a04728d66e88a
egl: compare the whole list of attributes

`memcmp()` compares a given number of bytes, but `EGLAttrib` is larger than a byte.

Fixes: 8e991ce5397598ceb422 "egl: handle the full attrib list in display::options"
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/egl/main/egldisplay.c