[PATCH 1/2] gl: Fix condition that prevents setting the size of window surfaces
Alexandros Frantzis
alexandros.frantzis at linaro.org
Fri Jan 7 03:01:19 PST 2011
A typo in cairo_gl_surface_set_size() prevented resizing of window surfaces
while incorrectly allowed resizing of texture-backed surfaces.
---
src/cairo-gl-surface.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/cairo-gl-surface.c b/src/cairo-gl-surface.c
index d20fb98..0e4d275 100644
--- a/src/cairo-gl-surface.c
+++ b/src/cairo-gl-surface.c
@@ -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;
--
1.7.1
--EVF5PPMfhYS0aIcm
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="0002-gl-Ensure-that-gl-surface-resizes-are-properly-appli.patch"
More information about the cairo
mailing list