mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-03 03:07:58 +02:00
[gl] Release the context acquired in surface_create.
Fixes assertion failures in many testcases since
cf9ea9f2f0
This commit is contained in:
parent
20990365f3
commit
ea7fda442c
1 changed files with 2 additions and 0 deletions
|
|
@ -545,6 +545,8 @@ cairo_gl_surface_create (cairo_device_t *abstract_device,
|
|||
return _cairo_surface_create_in_error (status);
|
||||
}
|
||||
|
||||
_cairo_gl_context_release (ctx);
|
||||
|
||||
return &surface->base;
|
||||
}
|
||||
slim_hidden_def (cairo_gl_surface_create);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue