diff --git a/glamor/glamor_picture.c b/glamor/glamor_picture.c index 2c8a49b77..f25885716 100644 --- a/glamor/glamor_picture.c +++ b/glamor/glamor_picture.c @@ -211,7 +211,7 @@ glamor_get_tex_format_type_from_pictformat(ScreenPtr pScreen, break; case PIXMAN_x4b4g4r4: - case PICT_a4b4g4r4: + case PIXMAN_a4b4g4r4: if (!glamor_priv->is_gles) { *tex_format = GL_RGBA; *tex_type = GL_UNSIGNED_SHORT_4_4_4_4_REV; diff --git a/render/picture.c b/render/picture.c index 2d7e6c388..a910c70f5 100644 --- a/render/picture.c +++ b/render/picture.c @@ -266,7 +266,7 @@ PictureCreateDefaultFormats(ScreenPtr pScreen, int *nformatp) addFormat(formats, &nformats, PIXMAN_r5g6b5, pDepth->depth); addFormat(formats, &nformats, PIXMAN_b5g6r5, pDepth->depth); addFormat(formats, &nformats, PIXMAN_a4r4g4b4, pDepth->depth); - addFormat(formats, &nformats, PICT_a4b4g4r4, pDepth->depth); + addFormat(formats, &nformats, PIXMAN_a4b4g4r4, pDepth->depth); } break; case 32: