diff --git a/.pick_status.json b/.pick_status.json index 813d40228aa..e545eaeadf5 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -913,7 +913,7 @@ "description": "mesa: fix refcnt imbalance related to egl_image_target_texture()", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "6a3f5c65128b82b87c5fadcf1d42484f6489b11b" }, diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index 0a320073d7e..cfa90a3cd38 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -3562,6 +3562,7 @@ egl_image_target_texture(struct gl_context *ctx, !(target == GL_TEXTURE_2D || target == GL_TEXTURE_EXTERNAL_OES)) { _mesa_error(ctx, GL_INVALID_OPERATION, "%s(texture is imported from dmabuf)", caller); + pipe_resource_reference(&stimg.texture, NULL); _mesa_unlock_texture(ctx, texObj); return; }