mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
glamor: don't do copy if we have 0 boxes to copy.
This happens if you run twm + mplayer + xclock and drag the clock over the mplayer. If we don't catch it, we cause an illegal draw elements command to be passed to GL. Signed-off-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
@@ -640,6 +640,9 @@ glamor_copy(DrawablePtr src,
|
||||
Pixel bitplane,
|
||||
void *closure)
|
||||
{
|
||||
if (nbox == 0)
|
||||
return;
|
||||
|
||||
if (glamor_copy_gl(src, dst, gc, box, nbox, dx, dy, reverse, upsidedown, bitplane, closure))
|
||||
return;
|
||||
glamor_copy_bail(src, dst, gc, box, nbox, dx, dy, reverse, upsidedown, bitplane, closure);
|
||||
|
||||
Reference in New Issue
Block a user