egl: don't set modifier if no modifiers are available
authorEmil Velikov <emil.velikov@collabora.com>
Wed, 28 Jun 2017 23:24:27 +0000 (00:24 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 12 Jul 2017 14:43:15 +0000 (15:43 +0100)
commita2ae8e6076cfdb4b3100d5d7c444c2f8ed68f5f5
tree3dd30e450c01b6234c737e97b0c41180305f9b73
parent4d8191fd000071328b97bde5fc31ab1c39238d27
egl: don't set modifier if no modifiers are available

If no modifiers are available, the variable will never be used. Thus
there's no point in initialising it.

Cc: Varad Gautam <varad.gautam@collabora.com>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/egl/drivers/dri2/egl_dri2.c