From: Brian Date: Tue, 6 Nov 2007 20:52:57 +0000 (-0700) Subject: define CLIP_TILE as in sp_surface.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fa44b74f4ec1a51fcbe656c5da94b0635defa992;p=mesa.git define CLIP_TILE as in sp_surface.c --- diff --git a/src/mesa/pipe/xlib/xm_surface.c b/src/mesa/pipe/xlib/xm_surface.c index 6250e75de8e..9969cc728d7 100644 --- a/src/mesa/pipe/xlib/xm_surface.c +++ b/src/mesa/pipe/xlib/xm_surface.c @@ -72,6 +72,10 @@ const int xmesa_kernel1[16] = { #define CLIP_TILE \ do { \ + if (x >= ps->width) \ + return; \ + if (y >= ps->height) \ + return; \ if (x + w > ps->width) \ w = ps->width - x; \ if (y + h > ps->height) \