diff --git a/glamor/glamor_picture.c b/glamor/glamor_picture.c index c30d58d957..ef230b666a 100644 --- a/glamor/glamor_picture.c +++ b/glamor/glamor_picture.c @@ -199,7 +199,7 @@ glamor_get_tex_format_type_from_pictformat(ScreenPtr pScreen, break; case PIXMAN_x4r4g4b4: - case PICT_a4r4g4b4: + case PIXMAN_a4r4g4b4: if (!glamor_priv->is_gles) { *tex_format = GL_BGRA; *tex_type = GL_UNSIGNED_SHORT_4_4_4_4_REV; diff --git a/render/picture.c b/render/picture.c index 24a15c372a..58a8a54a7b 100644 --- a/render/picture.c +++ b/render/picture.c @@ -265,7 +265,7 @@ PictureCreateDefaultFormats(ScreenPtr pScreen, int *nformatp) addFormat(formats, &nformats, PIXMAN_a1b5g5r5, pDepth->depth); addFormat(formats, &nformats, PIXMAN_r5g6b5, pDepth->depth); addFormat(formats, &nformats, PIXMAN_b5g6r5, pDepth->depth); - addFormat(formats, &nformats, PICT_a4r4g4b4, pDepth->depth); + addFormat(formats, &nformats, PIXMAN_a4r4g4b4, pDepth->depth); addFormat(formats, &nformats, PICT_a4b4g4r4, pDepth->depth); } break;