diff options
author | Fredrik Höglund <fredrik@kde.org> | 2009-06-29 22:38:26 +0200 |
---|---|---|
committer | Fredrik Höglund <fredrik@kde.org> | 2009-06-29 22:38:26 +0200 |
commit | bb04b450ed00ca4b1aa44c33085567d47b33b547 (patch) | |
tree | a5309080efb6dfa3e85a0185e76a7675164b1a79 /src/radeon_exa_render.c | |
parent | f39cafc5c4a93a16ac93756473ebb1f33c7881db (diff) |
Check if the composite op is supported in R200CheckComposite.
Diffstat (limited to 'src/radeon_exa_render.c')
-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 4610d804..e2742056 100644 --- a/src/radeon_exa_render.c +++ b/src/radeon_exa_render.c @@ -807,6 +807,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; |