Skip to content
Commit 2a6ea687 authored by Marius Vlad's avatar Marius Vlad
Browse files

gl-renderer: Avoid destroying an egl image if known import failed



As observed on some platforms, importing known DMA buffers can cause
failures, leading to an attempt of destroyng an EGL image not set. This patch
resets the num_images such that loop becomes inert when destroying the
DMA buffer, and avoids passing an egl image to it.

The initial import doesn't have this issue as it sets the num_images in
case it succeeds.  This also corrects the assumption that the num_images
were 0 at that point which, if the initial import succeded, was actually set
to 1.

Signed-off-by: default avatarMarius Vlad <marius.vlad@collabora.com>
parent 2f2e5da4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment