summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhigang Gong <zhigang.gong@linux.intel.com>2012-06-26 19:56:27 +0800
committerZhigang Gong <zhigang.gong@linux.intel.com>2012-07-03 18:30:15 +0800
commit622bfc174ab0c8a04146bd5fb754e96bc51d38c0 (patch)
tree925fa7adf1a7b5c3c79c02b46ebe44ae4e8a6e9c
parent033349420f53cdbbdda37b3975c498a0dc885cf6 (diff)
create_pixmap: use texture for large glyphs.
As we only cache glyphs smaller than 64x64, we need to use texutre for the large glyphs. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
-rw-r--r--src/glamor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glamor.c b/src/glamor.c
index 0f93e98..a0046f9 100644
--- a/src/glamor.c
+++ b/src/glamor.c
@@ -142,7 +142,7 @@ glamor_create_pixmap(ScreenPtr screen, int w, int h, int depth,
return NullPixmap;
if ((usage == GLAMOR_CREATE_PIXMAP_CPU
- || usage == CREATE_PIXMAP_USAGE_GLYPH_PICTURE
+ || (usage == CREATE_PIXMAP_USAGE_GLYPH_PICTURE && w <= 64 && h <= 64)
|| (w == 0 && h == 0)
|| !glamor_check_pixmap_fbo_depth(depth))
|| (!GLAMOR_TEXTURED_LARGE_PIXMAP &&