glamor: Add 8bpp to get/setspans.
This commit is contained in:
committed by
Zhigang Gong
parent
93ad091442
commit
f66e5c4145
@@ -218,6 +218,9 @@ glamor_set_spans(DrawablePtr drawable, GCPtr gc, char *src,
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
switch (drawable->depth) {
|
switch (drawable->depth) {
|
||||||
|
case 8:
|
||||||
|
format = GL_ALPHA;
|
||||||
|
type = GL_UNSIGNED_BYTE;
|
||||||
case 24:
|
case 24:
|
||||||
case 32:
|
case 32:
|
||||||
format = GL_BGRA;
|
format = GL_BGRA;
|
||||||
|
|||||||
@@ -63,6 +63,9 @@ glamor_get_spans(DrawablePtr drawable,
|
|||||||
type = GL_UNSIGNED_BYTE;
|
type = GL_UNSIGNED_BYTE;
|
||||||
readpixels_dst = temp_dst;
|
readpixels_dst = temp_dst;
|
||||||
break;
|
break;
|
||||||
|
case 8:
|
||||||
|
format = GL_ALPHA;
|
||||||
|
type = GL_UNSIGNED_BYTE;
|
||||||
case 24:
|
case 24:
|
||||||
format = GL_RGB;
|
format = GL_RGB;
|
||||||
type = GL_UNSIGNED_BYTE;
|
type = GL_UNSIGNED_BYTE;
|
||||||
|
|||||||
Reference in New Issue
Block a user