egl: Provide meaningfull error when built w/o requested platform
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 9 Nov 2017 17:55:19 +0000 (17:55 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 16 Nov 2017 14:03:03 +0000 (14:03 +0000)
commit55245fe1c9925045198f2f0954eff8f2e5d42d7b
tree694aab9c28cd5aede16163675c8f8ef2a64ce792
parent8ceccbf80dea7ac34cda68ec3117d80dd8922159
egl: Provide meaningfull error when built w/o requested platform

The current "No EGL platform enabled." is misleading and wrong.
We reach said code when $platform is missing.

To make this more obvious and clear provide wrappers in the header
file, making the code a bit easier to follow.

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