kdrive/mga: fix compiler warning

Change a case that only made one test for an if, preventing the compiler
warning about all other PICT_* types being unsupported.
This commit is contained in:
Daniel Stone 2006-12-02 16:20:34 +02:00 committed by Daniel Stone
parent 2f0a800ffd
commit 8724af248c

View File

@ -286,10 +286,8 @@ mgaCheckComposite(int op, PicturePtr pSrcPicture, PicturePtr pMaskPicture,
if (pMaskPicture->componentAlpha)
MGA_FALLBACK(("Component alpha unsupported"));
switch (pDstPicture->format) {
case PICT_a8:
if (pDstPicture->format == PICT_a8)
MGA_FALLBACK(("render to A8 unsupported"));
}
return TRUE;
}