mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-28 21:33:09 +00:00
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
2 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue