From 5e7fdbb498c47b6e89280b8354f0ebaaf61d0646 Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Thu, 11 Aug 2011 15:08:12 -0400 Subject: [PATCH] glamor: Disable ALPHA8 fbo. As some platform doesn't support to use ALPHA8 texture as draw target, we have to disable it. It seems there is no easy way to check that. Signed-off-by: Zhigang Gong --- glamor/glamor.c | 2 ++ glamor/glamor_pixmap.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/glamor/glamor.c b/glamor/glamor.c index 06103ace1..cd261ac8b 100644 --- a/glamor/glamor.c +++ b/glamor/glamor.c @@ -146,9 +146,11 @@ glamor_create_pixmap(ScreenPtr screen, int w, int h, int depth, return pixmap; switch (depth) { +#if 0 case 8: format = GL_ALPHA; break; +#endif case 24: format = GL_RGB; break; diff --git a/glamor/glamor_pixmap.c b/glamor/glamor_pixmap.c index b105916d6..5ac62f4e7 100644 --- a/glamor/glamor_pixmap.c +++ b/glamor/glamor_pixmap.c @@ -219,9 +219,11 @@ __glamor_upload_pixmap_to_texture(PixmapPtr pixmap, GLenum format, GLenum type, GLenum iformat; switch (pixmap->drawable.depth) { +#if 0 case 8: iformat = GL_ALPHA; break; +#endif case 24: iformat = GL_RGB; break;