CreateColormap returns Success on success, not TRUE.
Fixes a problem where enabling color index overlays disables the RENDER extension.
This commit is contained in:
parent
2854abd39d
commit
607b0d09ea
|
@ -413,8 +413,9 @@ PictureInitIndexedFormat(ScreenPtr pScreen, PictFormatPtr format)
|
||||||
(ColormapPtr) LookupIDByType(pScreen->defColormap, RT_COLORMAP);
|
(ColormapPtr) LookupIDByType(pScreen->defColormap, RT_COLORMAP);
|
||||||
} else {
|
} else {
|
||||||
VisualPtr pVisual = PictureFindVisual(pScreen, format->index.vid);
|
VisualPtr pVisual = PictureFindVisual(pScreen, format->index.vid);
|
||||||
if (!CreateColormap(FakeClientID (0), pScreen, pVisual,
|
if (CreateColormap(FakeClientID (0), pScreen, pVisual,
|
||||||
&format->index.pColormap, AllocNone, 0))
|
&format->index.pColormap, AllocNone, 0)
|
||||||
|
!= Success)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
if (!ps->InitIndexed(pScreen, format))
|
if (!ps->InitIndexed(pScreen, format))
|
||||||
|
|
Loading…
Reference in New Issue