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 <zhigang.gong@gmail.com>
This commit is contained in:
parent
172e8cfcd4
commit
5e7fdbb498
|
@ -146,9 +146,11 @@ glamor_create_pixmap(ScreenPtr screen, int w, int h, int depth,
|
||||||
return pixmap;
|
return pixmap;
|
||||||
|
|
||||||
switch (depth) {
|
switch (depth) {
|
||||||
|
#if 0
|
||||||
case 8:
|
case 8:
|
||||||
format = GL_ALPHA;
|
format = GL_ALPHA;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
case 24:
|
case 24:
|
||||||
format = GL_RGB;
|
format = GL_RGB;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -219,9 +219,11 @@ __glamor_upload_pixmap_to_texture(PixmapPtr pixmap, GLenum format, GLenum type,
|
||||||
GLenum iformat;
|
GLenum iformat;
|
||||||
|
|
||||||
switch (pixmap->drawable.depth) {
|
switch (pixmap->drawable.depth) {
|
||||||
|
#if 0
|
||||||
case 8:
|
case 8:
|
||||||
iformat = GL_ALPHA;
|
iformat = GL_ALPHA;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
case 24:
|
case 24:
|
||||||
iformat = GL_RGB;
|
iformat = GL_RGB;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user