swrast: Remove redundant term in logic expression
authorChad Versace <chad@chad-versace.us>
Mon, 10 Oct 2011 22:02:22 +0000 (15:02 -0700)
committerChad Versace <chad@chad-versace.us>
Sat, 15 Oct 2011 22:49:03 +0000 (15:49 -0700)
commit4bcda856982cc428cba555367001f4db721a9aaf
treef25d67bf43636ba28561af025a27017d99dcc925
parent244a02c47d0de860db4183212f8a33c2c02d95db
swrast: Remove redundant term in logic expression

Fix is in {read,draw}_depth_stencil_pixels().  If depthRb == stencilRb,
then it is redundant to check depthRb->x *and* stencilRb->x.

Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Chad Versace <chad@chad-versace.us>
src/mesa/swrast/s_drawpix.c
src/mesa/swrast/s_readpix.c