Safely dispose of the resize buffer

We just ensure there is a valid EGL context before
we destroy the associated layer.
1 file changed