mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-23 04:00:41 +02:00
gl: Really don't write error status to the inert object.
This commit is contained in:
parent
5fed41ee2b
commit
a4bae1956b
1 changed files with 3 additions and 0 deletions
|
|
@ -652,6 +652,9 @@ cairo_gl_surface_swapbuffers (cairo_surface_t *abstract_surface)
|
|||
cairo_gl_surface_t *surface = (cairo_gl_surface_t *) abstract_surface;
|
||||
cairo_status_t status;
|
||||
|
||||
if (unlikely (abstract_surface->status))
|
||||
return;
|
||||
|
||||
if (! _cairo_surface_is_gl (abstract_surface)) {
|
||||
status = _cairo_surface_set_error (abstract_surface,
|
||||
CAIRO_STATUS_SURFACE_TYPE_MISMATCH);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue