Skip to content

Commit

Permalink
linux_dmabuf: use eglDestroyImageKHR extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Saviq committed Oct 10, 2023
1 parent bda9447 commit 622ab4e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/platform/graphics/linux_dmabuf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1260,8 +1260,9 @@ auto mg::DMABufEGLProvider::as_texture(std::shared_ptr<Buffer> buffer)
}
auto importable_dmabuf = export_egl_image(*importing_provider->dmabuf_export_ext, importing_provider->dpy, importable_image, dmabuf_tex->size());

eglDestroyImage(importing_provider->dpy, src_image);
eglDestroyImage(importing_provider->dpy, importable_image);
auto base_extension = importing_provider->egl_extensions->base(importing_provider->dpy);
base_extension.eglDestroyImageKHR(importing_provider->dpy, src_image);
base_extension.eglDestroyImageKHR(importing_provider->dpy, importable_image);

if (auto descriptor = descriptor_for_format_and_modifiers(
importable_dmabuf->format(),
Expand Down

0 comments on commit 622ab4e

Please sign in to comment.