egl: fold eglGetConfigAttrib() within wegl_config_choose()
commit3fda9393fff31b8f7fd5ae6b6eba19a557684bc6
authorEmil Velikov <emil.l.velikov@gmail.com>
Sat, 14 May 2016 18:36:00 +0000 (14 19:36 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 15 Jun 2017 15:17:48 +0000 (15 16:17 +0100)
tree366d96248edd412032f99558ee886a8b914aac0e
parent03d55669971eccd29b1707f11bd05d74a0e7a480
egl: fold eglGetConfigAttrib() within wegl_config_choose()

Rather than having the call in multiple places and multiple times, just
query the native visual id once and store it for later use.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
src/waffle/egl/wegl_config.c
src/waffle/egl/wegl_config.h
src/waffle/gbm/wgbm_config.c
src/waffle/gbm/wgbm_config.h
src/waffle/gbm/wgbm_platform.c
src/waffle/gbm/wgbm_window.c
src/waffle/xegl/xegl_window.c