summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2008-06-09 09:52:04 -0700
committerAaron Plattner <aplattner@nvidia.com>2008-06-09 09:54:25 -0700
commit607b0d09ea003f87cfb3331e59e13495a483832a (patch)
tree7893cc99e2bc0a9f63ba8f21f94f4a6261e9bb33 /render
parent2854abd39d4deb79c9ee9bcc931fad969392cfc5 (diff)
CreateColormap returns Success on success, not TRUE.
Fixes a problem where enabling color index overlays disables the RENDER extension.
Diffstat (limited to 'render')
-rw-r--r--render/picture.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/render/picture.c b/render/picture.c
index 35e2a28b3..2fbd09e8b 100644
--- a/render/picture.c
+++ b/render/picture.c
@@ -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))