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);
|
||||
} else {
|
||||
VisualPtr pVisual = PictureFindVisual(pScreen, format->index.vid);
|
||||
if (!CreateColormap(FakeClientID (0), pScreen, pVisual,
|
||||
&format->index.pColormap, AllocNone, 0))
|
||||
if (CreateColormap(FakeClientID (0), pScreen, pVisual,
|
||||
&format->index.pColormap, AllocNone, 0)
|
||||
!= Success)
|
||||
return FALSE;
|
||||
}
|
||||
if (!ps->InitIndexed(pScreen, format))
|
||||
|
|
Loading…
Reference in New Issue