gl: Clear current when destroying current's surface
When destroying the EGLSurface or GLXDrawable of a GdkSurface, make sure the current context is not still bound to it.
If it is, clear the current context.
Fixes #4554 (closed)
When destroying the EGLSurface or GLXDrawable of a GdkSurface, make sure the current context is not still bound to it.
If it is, clear the current context.
Fixes #4554 (closed)