gl-renderer: Remove outdated comment

The comment about needing to have destroyed images is somewhat less true
now that we actively avoid doing so.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Fixes: 0b51b02c5e ("gl-renderer: Don't re-import dmabufs")
This commit is contained in:
Daniel Stone 2022-01-14 00:22:20 +00:00
parent efd6aae915
commit f8ac6f940f

View file

@ -2843,14 +2843,6 @@ gl_renderer_attach_dmabuf(struct weston_surface *surface,
gs->direct_display = dmabuf->direct_display;
surface->is_opaque = dmabuf_is_opaque(dmabuf);
/*
* We try to always hold an imported EGLImage from the dmabuf
* to prevent the client from preventing re-imports. But, we also
* need to re-import every time the contents may change because
* GL driver's caching may need flushing.
*
* Here we release the cache reference which has to be final.
*/
if (dmabuf->direct_display)
return;