[cairo] [PATCH] egl: do not destroy dummy_surface if it does not exist

Chris Wilson chris at chris-wilson.co.uk
Fri Dec 16 08:30:45 PST 2011


On Fri, 16 Dec 2011 16:27:40 +0200, Pekka Paalanen <ppaalanen at gmail.com> wrote:
> On deleting an EGL device, it is possible that
> cairo_egl_context_t::dummy_surface is EGL_NO_SURFACE. In that case
> calling eglDestroySurface() on it will lead to EGL_BAD_SURFACE error.
> 
> Check dummy_surface before destroying it.

Pushed, thanks.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the cairo mailing list