diff options
author | Alan Hourihane <alanh@tungstengraphics.com> | 2006-04-07 08:50:39 +0000 |
---|---|---|
committer | Alan Hourihane <alanh@tungstengraphics.com> | 2006-04-07 08:50:39 +0000 |
commit | e2af1da1d3578f23e67ab9e259a9d59fec34f25a (patch) | |
tree | 67289eaccd6dfe2fd34e598f4c57922eecb6f42c /src/mesa/drivers/dri/i915/intel_pixel.c | |
parent | 9d3de643d1cd84cd0f48ff72ab7218f20b158c28 (diff) |
Fix some warnings on x86_64
Diffstat (limited to 'src/mesa/drivers/dri/i915/intel_pixel.c')
-rw-r--r-- | src/mesa/drivers/dri/i915/intel_pixel.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_pixel.c b/src/mesa/drivers/dri/i915/intel_pixel.c index aaafe84a6a..2af38541d9 100644 --- a/src/mesa/drivers/dri/i915/intel_pixel.c +++ b/src/mesa/drivers/dri/i915/intel_pixel.c @@ -157,13 +157,15 @@ intersect_region(const drm_clip_rect_t *box, if (by < y) bh -= y - by, by = y; if (bx + bw > x + width) bw = x + width - bx; if (by + bh > y + height) bh = y + height - by; - if (bw <= 0) return GL_FALSE; - if (bh <= 0) return GL_FALSE; *xOut = bx; *yOut = by; *wOut = bw; *hOut = bh; + + if (bw <= 0) return GL_FALSE; + if (bh <= 0) return GL_FALSE; + return GL_TRUE; } @@ -423,6 +425,8 @@ intelTryDrawPixels( GLcontext *ctx, } else return GL_FALSE; + + return GL_FALSE; } static void |