summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Li <samuel.li@amd.com>2014-02-04 18:52:50 -0500
committerAlex Deucher <alexander.deucher@amd.com>2014-02-06 11:37:27 -0500
commite734e1b621c03aeb1c7ba6b2485b7e71c8b008b6 (patch)
tree22ef68f07760afad237a0ccae8cb31375b5feff1
parent6ffa4b88be5ac1580d29193b6cd3d216415d9be2 (diff)
glamor: Fall back for unsupported picture format.
This fixes seg fault when running x11perf -aa4trap300. Signed-off-by: Samuel Li <samuel.li@amd.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--src/glamor_pixmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glamor_pixmap.c b/src/glamor_pixmap.c
index b34cf5b..9f2ecbb 100644
--- a/src/glamor_pixmap.c
+++ b/src/glamor_pixmap.c
@@ -708,7 +708,7 @@ glamor_upload_sub_pixmap_to_texture(PixmapPtr pixmap, int x, int y, int w, int h
&swap_rb, 1)) {
glamor_fallback("Unknown pixmap depth %d.\n",
pixmap->drawable.depth);
- return TRUE;
+ return FALSE;
}
if (glamor_pixmap_upload_prepare(pixmap, format, no_alpha, revert, swap_rb))
return FALSE;