summaryrefslogtreecommitdiff
path: root/src/nouveau_exa.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nouveau_exa.c')
-rw-r--r--src/nouveau_exa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nouveau_exa.c b/src/nouveau_exa.c
index b8e9bef..bcc0d4e 100644
--- a/src/nouveau_exa.c
+++ b/src/nouveau_exa.c
@@ -139,8 +139,10 @@ nouveau_exa_create_pixmap(ScreenPtr pScreen, int width, int height, int depth,
return NULL;
}
+#ifdef NOUVEAU_PIXMAP_SHARING
if ((usage_hint & 0xffff) == CREATE_PIXMAP_USAGE_SHARED)
nvpix->shared = TRUE;
+#endif
return nvpix;
}