mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 10:00:45 -05:00
cogl/onscreen: Add missing error untrap calls
Every `mtk_x11_error_trap_push()` must be paired with an `mtk_x11_error_trap_pop[_with_return]()` call otherwise all future errors will be caught and ignored even if they shouldn't be. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3328>
This commit is contained in:
parent
8d3d8b86e5
commit
c58312e249
@ -133,6 +133,7 @@ cogl_onscreen_glx_allocate (CoglFramebuffer *framebuffer,
|
||||
COGL_WINSYS_ERROR_CREATE_ONSCREEN,
|
||||
"Unable to retrieve the X11 visual of context's "
|
||||
"fbconfig");
|
||||
mtk_x11_error_trap_pop (xlib_renderer->xdpy);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -86,6 +86,7 @@ create_xwindow (CoglOnscreenXlib *onscreen_xlib,
|
||||
COGL_WINSYS_ERROR_CREATE_ONSCREEN,
|
||||
"Unable to retrieve the X11 visual of context's "
|
||||
"fbconfig");
|
||||
mtk_x11_error_trap_pop (xlib_renderer->xdpy);
|
||||
return None;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user