Skip to content

gl: Clear current when destroying current's surface

Benjamin Otte requested to merge wip/otte/for-main into main

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)

Merge request reports