summaryrefslogtreecommitdiff
path: root/src/radeon_render.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/radeon_render.c')
-rw-r--r--src/radeon_render.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/radeon_render.c b/src/radeon_render.c
index 054e60f..5074fe1 100644
--- a/src/radeon_render.c
+++ b/src/radeon_render.c
@@ -401,7 +401,7 @@ static Bool FUNC_NAME(R100SetupTexture)(
dst_pitch = (width * tex_bytepp + 63) & ~63;
size = dst_pitch * height;
- if ((flags & XAA_RENDER_REPEAT) &&
+ if ((flags & XAA_RENDER_REPEAT) && (height != 1) &&
(((width * tex_bytepp + 31) & ~31) != dst_pitch))
return FALSE;
@@ -738,7 +738,7 @@ static Bool FUNC_NAME(R200SetupTexture)(
dst_pitch = (width * tex_bytepp + 63) & ~63;
size = dst_pitch * height;
- if ((flags & XAA_RENDER_REPEAT) &&
+ if ((flags & XAA_RENDER_REPEAT) && (height != 1) &&
(((width * tex_bytepp + 31) & ~31) != dst_pitch))
return FALSE;