summaryrefslogtreecommitdiff
path: root/src/egl/drivers/android/droid_loader.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/egl/drivers/android/droid_loader.c')
-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;