summaryrefslogtreecommitdiff
path: root/src/egl
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2009-10-22 15:43:25 +0800
committerChia-I Wu <olvaffe@gmail.com>2009-10-22 15:48:05 +0800
commit893bc24da36071bb716b857488c725dd8d45ebd4 (patch)
treedc641c324bb68b7cbabc2b6f7bd8ebc87b685ba8 /src/egl
parentc83d23d30d6ead814d0235fa8b236b5be08a2c2e (diff)
egl_android: Wrong attribute is passed.
Diffstat (limited to 'src/egl')
-rw-r--r--src/egl/drivers/android/droid_loader.c6
1 files changed, 4 insertions, 2 deletions
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;