[waffle] [PATCH 06/10] gbm: wegl_display ok in wgbm_config_get_gbm_format
Frank Henigman
fjhenigman at google.com
Mon Mar 30 12:12:46 PDT 2015
From: Frank Henigman <fjhenigman at gmail.com>
wgbm_config_get_gbm_format() does not need to cast the display all the
way to wgbm_display; wegl_display is far enough.
Now wgbm_config_get_gbm_format() can be used outside of the gbm platform.
Signed-off-by: Frank Henigman <fjhenigman at google.com>
---
src/waffle/gbm/wgbm_config.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/waffle/gbm/wgbm_config.c b/src/waffle/gbm/wgbm_config.c
index 67470d5..1d64b71 100644
--- a/src/waffle/gbm/wgbm_config.c
+++ b/src/waffle/gbm/wgbm_config.c
@@ -55,10 +55,10 @@ wgbm_config_get_gbm_format(struct wcore_platform *wc_plat,
struct wcore_config *wc_config)
{
EGLint gbm_format;
- struct wgbm_display *dpy = wgbm_display(wc_display);
+ struct wegl_display *dpy = wegl_display(wc_display);
struct wegl_platform *plat = wegl_platform(wc_plat);
struct wegl_config *egl_config = wegl_config(wc_config);
- bool ok = plat->eglGetConfigAttrib(dpy->wegl.egl,
+ bool ok = plat->eglGetConfigAttrib(dpy->egl,
egl_config->egl,
EGL_NATIVE_VISUAL_ID,
&gbm_format);
--
2.2.0.rc0.207.ga3a616c
More information about the waffle
mailing list