diff --git a/glamor/glamor_picture.c b/glamor/glamor_picture.c index 1f40087a9a..0ce4f1afd6 100644 --- a/glamor/glamor_picture.c +++ b/glamor/glamor_picture.c @@ -173,7 +173,7 @@ glamor_get_tex_format_type_from_pictformat(ScreenPtr pScreen, } break; - case PICT_x1b5g5r5: + case PIXMAN_x1b5g5r5: case PICT_a1b5g5r5: *tex_format = GL_RGBA; if (!glamor_priv->is_gles) { diff --git a/render/picture.c b/render/picture.c index 6975303a9e..85d40b65e3 100644 --- a/render/picture.c +++ b/render/picture.c @@ -257,7 +257,7 @@ PictureCreateDefaultFormats(ScreenPtr pScreen, int *nformatp) /* depth 15 formats */ if (pDepth->depth >= 15) { addFormat(formats, &nformats, PIXMAN_x1r5g5b5, pDepth->depth); - addFormat(formats, &nformats, PICT_x1b5g5r5, pDepth->depth); + addFormat(formats, &nformats, PIXMAN_x1b5g5r5, pDepth->depth); } /* depth 16 formats */ if (pDepth->depth >= 16) {