[Mesa-dev] [PATCH] st/dri: Fix dangling pointer to a destroyed dri_drawable

Daniel Stone daniel at fooishbar.org
Tue Apr 24 09:00:30 UTC 2018


Hi Johan,

On 24 April 2018 at 09:44, Johan Helsing <johan.helsing at qt.io> wrote:
> If the call to dri_destroy_buffer is delayed until the next eglMakeCurrent,
> that would also solve the problem (I'm not sure how that would affect other
> things, though).

It _must_ be:
  If the EGL surface surface is not current to any thread,
eglDestroySurface destroys it immediately. Otherwise, surface is
destroyed when it becomes not current to any thread.

Cheers,
Daniel


More information about the mesa-dev mailing list