mirror of
https://github.com/brl/mutter.git
synced 2025-03-27 21:53:47 +00:00

When SetPixelFormat fails, the DC would get released but none of the other resources would be freed. This patch makes it call _cogl_winsys_onscreen_deinit on failure to clean up all of the resources. The patch looks big because it moves the onscreen_deinit and onscreen_bind functions.