mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-17 00:50:40 +01:00
gl: Fix condition that prevents setting the size of window surfaces
A typo in cairo_gl_surface_set_size() prevents resizing of window surfaces while incorrectly allows resizing of texture-backed surfaces.
This commit is contained in:
parent
55c57a5b3d
commit
45331fe87c
1 changed files with 1 additions and 1 deletions
|
|
@ -459,7 +459,7 @@ cairo_gl_surface_set_size (cairo_surface_t *abstract_surface,
|
|||
}
|
||||
|
||||
if (! _cairo_surface_is_gl (abstract_surface) ||
|
||||
! _cairo_gl_surface_is_texture (surface)) {
|
||||
_cairo_gl_surface_is_texture (surface)) {
|
||||
status = _cairo_surface_set_error (abstract_surface,
|
||||
_cairo_error (CAIRO_STATUS_SURFACE_TYPE_MISMATCH));
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue