gl_basic: Check if display supports the context api
gl_basic: Check if display supports the context api

Don't blindly charge forward attempting to create a GL context. Instead,
first check if the display supports the requested context API. Give the
user an error message if the check fails.

Signed-off-by: Chad Versace <a557f7f75bf28dc19ac99107f5cc7cd6b3fbdb1a@linux.intel.com>

janesma/waffle,yinquan529/waffle-gl-waffle,waffle-gl/waffle,waffle-gl/waffle,janesma/waffle,evelikov/waffle,chadversary/waffle,yinquan529/waffle-gl-waffle,fjhenigman/waffle,dcbaker/waffle,evelikov/waffle,janesma/waffle,dcbaker/waffle,maurossi/waffle,dcbaker/waffle,waffle-gl/waffle,waffle-gl/waffle,fjhenigman/waffle,yinquan529/waffle-gl-waffle,chadversary/waffle,fjhenigman/waffle,maurossi/waffle,maurossi/waffle,chadversary/waffle,evelikov/waffle