mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-21 13:00:35 +01:00
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.
This commit is contained in:
parent
8da704ca7c
commit
32bd6aa46d
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue