egl/dri2: fix image loaderPrivate type mixup

The first callback which uses an image's loaderPrivate data was recently
added. Prior to this, dri2_create_image_khr_texture had been setting the
unused loaderPrivate field on the image it creates. This caused a
pointer type mixup in platform_android when it started using the new
callback. Fix this by no longer unnecessarily setting loaderPrivate in
dri2_create_image_khr_texture.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4010
Fixes: a2fb87eea6 ("egl/android: implement image cleanup callback")
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8211>
This commit is contained in:
David Stevens 2020-12-23 23:38:32 +09:00
parent 2d0c723ce6
commit df09ada411
1 changed files with 1 additions and 1 deletions

View File

@ -2461,7 +2461,7 @@ dri2_create_image_khr_texture(_EGLDisplay *disp, _EGLContext *ctx,
depth,
attrs.GLTextureLevel,
&error,
dri2_img);
NULL);
dri2_create_image_khr_texture_error(error);
if (!dri2_img->dri_image) {