mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-06-07 06:28:17 +02:00
drm-i915: Ensure surface size for clone is initialized.
If the surface had a snapshot, then we would have not initialized the surface size and so compute a bogus normalization matrix.
This commit is contained in:
parent
c82ff8cbcf
commit
02f20458d1
1 changed files with 3 additions and 4 deletions
|
|
@ -1484,13 +1484,12 @@ i915_shader_acquire_surface (i915_shader_t *shader,
|
|||
src_y = -extents->y;
|
||||
}
|
||||
|
||||
surface_width = image->width;
|
||||
surface_height = image->height;
|
||||
|
||||
_cairo_surface_release_source_image (surface, image, image_extra);
|
||||
|
||||
if (unlikely (status))
|
||||
return status;
|
||||
|
||||
surface_width = s->intel.drm.width;
|
||||
surface_height = s->intel.drm.height;
|
||||
}
|
||||
|
||||
src->type.fragment = FS_TEXTURE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue