gl-renderer: fix configless_context check
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 8 Apr 2015 14:02:22 +0000 (17:02 +0300)
committerDaniel Stone <daniels@collabora.com>
Wed, 8 Apr 2015 15:41:07 +0000 (16:41 +0100)
commit8b69d03fafd7a2e4ed7c5c25d2551c380453a0a4
tree3b14ec54b718d41bb57f3bbea0bcb192f1f36d6e
parentf282454cf6cb9859876d148a83bf99450ce860d8
gl-renderer: fix configless_context check

EGL_MESA_configless_context is a display extension. The query for client
extensions was overwriting the pointer, so it was being searched from
the client extensions instead.

Fix any confusion here by moving all client extension checks into
another function. Drop a useless cast.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Daniel Stone <daniels@collabora.com>
src/gl-renderer.c