mesa: Fix FB blitting in case of zero size src or dst rect
authorAnuj Phogat <anuj.phogat@gmail.com>
Thu, 7 Mar 2013 22:05:38 +0000 (14:05 -0800)
committerAnuj Phogat <anuj.phogat@gmail.com>
Thu, 14 Mar 2013 00:58:09 +0000 (17:58 -0700)
commitd78dcdf103271c539ff246651236e71f7a9c10fd
tree55669ed22c11d820afa49c205ea56354da103573
parent1826659272c65ee6f4c4c2391d619ab0095b8e3a
mesa: Fix FB blitting in case of zero size src or dst rect

Framebuffer blitting operation should be skipped if any of the
dimensions (width/height) of src/dst rect is zero.

V2: Move the dimension check after error checking in _mesa_BlitFramebuffer.

Fixes: fbblit(negative.nullblit.zeroSize) in Intel oglconform
https://bugs.freedesktop.org/show_bug.cgi?id=59495

Note: Candidate for all the stable branches.

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/main/fbobject.c