[cairo-commit] src/cairo-gl-device.c
Martin Robinson
mrobinson at kemper.freedesktop.org
Fri Apr 26 15:23:17 PDT 2013
src/cairo-gl-device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 32bd6aa46dc77c497f06d2ab3bf0c2ec218d9e19
Author: Martin Robinson <mrobinson at igalia.com>
Date: Fri Apr 26 15:21:37 2013 -0700
gl: Update transformation when surface size changes
In my previous commit I mistakenly removed the transformation matrix
update when cairo_gl_surface_set_size is called. This change restores
it.
diff --git a/src/cairo-gl-device.c b/src/cairo-gl-device.c
index 97e3fb8..942eb2a 100644
--- a/src/cairo-gl-device.c
+++ b/src/cairo-gl-device.c
@@ -710,7 +710,7 @@ _cairo_gl_context_set_destination (cairo_gl_context_t *ctx,
cairo_gl_surface_t *surface,
cairo_bool_t multisampling)
{
- cairo_bool_t changing_surface = ctx->current_target != surface;
+ cairo_bool_t changing_surface = ctx->current_target != surface || surface->needs_update;
cairo_bool_t changing_sampling = surface->msaa_active != multisampling;
if (! changing_surface && ! changing_sampling)
return;
More information about the cairo-commit
mailing list