mirror of https://gitlab.freedesktop.org/mesa/mesa
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:
parent
2d0c723ce6
commit
df09ada411
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue