diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-11-06 13:52:57 -0700 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-11-06 13:52:57 -0700 |
commit | fa44b74f4ec1a51fcbe656c5da94b0635defa992 (patch) | |
tree | 38c26187bb8b1834f9789d91f2ddf0a4aa48b727 | |
parent | 0862df21545df4cac56f0c182e8818573131f951 (diff) |
define CLIP_TILE as in sp_surface.c
-rw-r--r-- | src/mesa/pipe/xlib/xm_surface.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/pipe/xlib/xm_surface.c b/src/mesa/pipe/xlib/xm_surface.c index 6250e75de8..9969cc728d 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) \ |