diff options
author | Fredrik Höglund <fredrik@kde.org> | 2009-06-29 22:38:26 +0200 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2009-06-30 00:45:13 -0400 |
commit | e1a582fd40f22d88b94a591c6886fb1b2154c3df (patch) | |
tree | 3d5569c27f27d943664b6e3fa5d3abbcc10126b1 | |
parent | d75287b84e830a655f17060de8fea55777b6db55 (diff) |
Check if the composite op is supported in R200CheckComposite.
-rw-r--r-- | src/radeon_exa_render.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/radeon_exa_render.c b/src/radeon_exa_render.c index effcd892..65197c02 100644 --- a/src/radeon_exa_render.c +++ b/src/radeon_exa_render.c @@ -803,6 +803,10 @@ static Bool R200CheckComposite(int op, PicturePtr pSrcPicture, PicturePtr pMaskP TRACE; + /* Check for unsupported compositing operations. */ + if (op >= sizeof(RadeonBlendOp) / sizeof(RadeonBlendOp[0])) + RADEON_FALLBACK(("Unsupported Composite op 0x%x\n", op)); + if (!pSrcPicture->pDrawable) return FALSE; |