From 4303b45018994a8d41864d720fa2e3e6e3e79afa Mon Sep 17 00:00:00 2001 From: Thomas Jaeger Date: Fri, 30 Jan 2009 16:18:34 -0500 Subject: [PATCH] Fall back to software for unsupported repeat modes --- src/mga_exa.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/mga_exa.c b/src/mga_exa.c index 9321452..524e1b3 100644 --- a/src/mga_exa.c +++ b/src/mga_exa.c @@ -332,6 +332,11 @@ mgaCheckSourceTexture(int tmu, PicturePtr pPict) return FALSE; } + if (pPict->repeat && pPict->repeatType != RepeatNormal) { + DEBUG_MSG(("Unsupported repeat type %d\n", pPict->repeatType)); + return FALSE; + } + if (pPict->repeat && ((w & (w - 1)) != 0 || (h & (h - 1)) != 0)) { DEBUG_MSG(("NPOT repeat unsupported (%dx%d)\n", w, h)); return FALSE; -- 1.6.0.6