egl: use switch statements over if/else chain
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 7 Sep 2017 16:03:53 +0000 (17:03 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 19 Sep 2017 18:08:41 +0000 (19:08 +0100)
commit4df0d50857aaf2f309333b0d69985a6d126e63dd
treed7120fb00a80a7c5096d0fcda660f602cc3bfd86
parentcaf7fb627dae6b49830a11b85952815e0fd096db
egl: use switch statements over if/else chain

Shorter, explicit and consistent with the rest of the co debase.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/egl/main/eglapi.c