mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-27 21:22:26 +00:00
glamor: Fixed two unintialized warnings.
Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
This commit is contained in:
parent
d49d482579
commit
477a54bc9e
2 changed files with 7 additions and 2 deletions
|
|
@ -309,7 +309,7 @@ glamor_copy_n_to_n(DrawablePtr src,
|
|||
void *closure)
|
||||
{
|
||||
glamor_access_t dst_access;
|
||||
PixmapPtr dst_pixmap, src_pixmap, temp_pixmap;
|
||||
PixmapPtr dst_pixmap, src_pixmap, temp_pixmap = NULL;
|
||||
DrawablePtr temp_src = src;
|
||||
glamor_pixmap_private *dst_pixmap_priv, *src_pixmap_priv;
|
||||
BoxRec bound;
|
||||
|
|
@ -361,6 +361,11 @@ glamor_copy_n_to_n(DrawablePtr src,
|
|||
temp_dy = -bound.y1;
|
||||
temp_src = &temp_pixmap->drawable;
|
||||
}
|
||||
else {
|
||||
temp_dx = dx;
|
||||
temp_dy = dy;
|
||||
temp_src = src;
|
||||
}
|
||||
|
||||
if (glamor_copy_n_to_n_textured(temp_src, dst, gc, box, nbox, temp_dx, temp_dy)) {
|
||||
goto done;
|
||||
|
|
|
|||
Loading…
Reference in a new issue