From e1a582fd40f22d88b94a591c6886fb1b2154c3df 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 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; -- cgit v1.2.3