From bb04b450ed00ca4b1aa44c33085567d47b33b547 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=B6glund?= Date: Mon, 29 Jun 2009 22:38:26 +0200 Subject: Check if the composite op is supported in R200CheckComposite. --- src/radeon_exa_render.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit v1.2.3