diff --git a/glamor/glamor_picture.c b/glamor/glamor_picture.c index 6cb2b25c73..fb5d052786 100644 --- a/glamor/glamor_picture.c +++ b/glamor/glamor_picture.c @@ -149,7 +149,7 @@ glamor_get_tex_format_type_from_pictformat(ScreenPtr pScreen, break; case PIXMAN_x2b10g10r10: - case PICT_a2b10g10r10: + case PIXMAN_a2b10g10r10: if (!glamor_priv->is_gles) { *tex_format = GL_RGBA; *tex_type = GL_UNSIGNED_INT_2_10_10_10_REV; diff --git a/render/picture.c b/render/picture.c index 32c23c754e..075728cccd 100644 --- a/render/picture.c +++ b/render/picture.c @@ -277,7 +277,7 @@ PictureCreateDefaultFormats(ScreenPtr pScreen, int *nformatp) if (pDepth->depth >= 30) { addFormat(formats, &nformats, PIXMAN_a2r10g10b10, pDepth->depth); addFormat(formats, &nformats, PIXMAN_x2r10g10b10, pDepth->depth); - addFormat(formats, &nformats, PICT_a2b10g10r10, pDepth->depth); + addFormat(formats, &nformats, PIXMAN_a2b10g10r10, pDepth->depth); addFormat(formats, &nformats, PIXMAN_x2b10g10r10, pDepth->depth); } break;