EXA: Don't crash in ExaCheckPolyArc.

See https://bugs.freedesktop.org/show_bug.cgi?id=12286 .
This commit is contained in:
Alan Hourihane 2007-09-17 20:33:56 +02:00 committed by Michel Dänzer
parent 7ac89060e0
commit 56cc24ffb2

View File

@ -196,6 +196,12 @@ ExaCheckPolyArc (DrawablePtr pDrawable, GCPtr pGC,
int narcs, xArc *pArcs)
{
EXA_FALLBACK(("to %p (%c)\n", pDrawable, exaDrawableLocation(pDrawable)));
/* Disable this as fbPolyArc can call miZeroPolyArc which in turn
* can call accelerated functions, that as yet, haven't been notified
* with exaFinishAccess().
*/
#if 0
if (pGC->lineWidth == 0)
{
exaPrepareAccess (pDrawable, EXA_PREPARE_DEST);
@ -205,6 +211,7 @@ ExaCheckPolyArc (DrawablePtr pDrawable, GCPtr pGC,
exaFinishAccess (pDrawable, EXA_PREPARE_DEST);
return;
}
#endif
miPolyArc (pDrawable, pGC, narcs, pArcs);
}