summaryrefslogtreecommitdiffstats
path: root/src/egl/drivers/dri2/platform_android.c
diff options
context:
space:
mode:
authorPaulo Sergio Travaglia <pstglia@gmail.com>2016-06-20 05:27:24 -0300
committerMauro Rossi <issor.oruam@gmail.com>2016-11-01 20:41:59 +0100
commitc9b7ab2f486a64e576fe9181b3dbe76892fd8372 (patch)
tree8214ce012210df719db1fb430e997029794b0a09 /src/egl/drivers/dri2/platform_android.c
parent8e91ec27bdbf4b830c9616e3e04b912831c0cf36 (diff)
downloadexternal_mesa3d-c9b7ab2f486a64e576fe9181b3dbe76892fd8372.zip
external_mesa3d-c9b7ab2f486a64e576fe9181b3dbe76892fd8372.tar.gz
external_mesa3d-c9b7ab2f486a64e576fe9181b3dbe76892fd8372.tar.bz2
android: avoid using fallback function
When a target different than EGL_NATIVE_BUFFER_ANDROID is used with eglCreateImageKHR on sw rendering, a fallback funcion is used. As this returns NULL, EGL_NO_IMAGE_KHR is returned, which crashes many apps Using a function implemented for EGL/DRI2 in this cases allows eglCreateImageKHR usage for other targets (like EGL_GL_TEXTURE_2D_KHR)
Diffstat (limited to 'src/egl/drivers/dri2/platform_android.c')
-rw-r--r--src/egl/drivers/dri2/platform_android.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/drivers/dri2/platform_android.c b/src/egl/drivers/dri2/platform_android.c
index d248ed2..d51dccb 100644
--- a/src/egl/drivers/dri2/platform_android.c
+++ b/src/egl/drivers/dri2/platform_android.c
@@ -1047,7 +1047,7 @@ swrast_create_image_khr(_EGLDriver *drv, _EGLDisplay *disp,
return swrast_create_image_android_native_buffer(disp, ctx,
(struct ANativeWindowBuffer *) buffer);
default:
- return dri2_fallback_create_image_khr(drv, disp, ctx, target, buffer, attr_list);
+ return dri2_create_image_khr(drv, disp, ctx, target, buffer, attr_list);
}
}