From 893bc24da36071bb716b857488c725dd8d45ebd4 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Thu, 22 Oct 2009 15:43:25 +0800 Subject: egl_android: Wrong attribute is passed. --- src/egl/drivers/android/droid_loader.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/egl/drivers/android') diff --git a/src/egl/drivers/android/droid_loader.c b/src/egl/drivers/android/droid_loader.c index 67e8e9f2b1..7dc846afb0 100644 --- a/src/egl/drivers/android/droid_loader.c +++ b/src/egl/drivers/android/droid_loader.c @@ -478,8 +478,10 @@ droid_screen_get_drawable_data(struct droid_screen *screen, img->magic = __DRI_EGL_IMAGE_MAGIC; img->drawable = drawable->dri_drawable; img->level = 0; - if (loader->core->getConfigAttrib(drawable->dri_config, - EGL_BIND_TO_TEXTURE_RGBA, &val)) + if (drawable->dri_config == screen->image_configs[32] && + loader->core->getConfigAttrib(drawable->dri_config, + __DRI_ATTRIB_BIND_TO_TEXTURE_RGBA, + &val)) img->texture_format_rgba = val; drawable->dri_image = img; -- cgit v1.2.3