summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/xlib
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-11-06 13:52:57 -0700
committerBrian <[email protected]>2007-11-06 13:52:57 -0700
commitfa44b74f4ec1a51fcbe656c5da94b0635defa992 (patch)
tree38c26187bb8b1834f9789d91f2ddf0a4aa48b727 /src/mesa/pipe/xlib
parent0862df21545df4cac56f0c182e8818573131f951 (diff)
define CLIP_TILE as in sp_surface.c
Diffstat (limited to 'src/mesa/pipe/xlib')
-rw-r--r--src/mesa/pipe/xlib/xm_surface.c4
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 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) \