diff --git a/src/gallium/frontends/dri/dri2.c b/src/gallium/frontends/dri/dri2.c index e4c34dcd841..a520ad172de 100644 --- a/src/gallium/frontends/dri/dri2.c +++ b/src/gallium/frontends/dri/dri2.c @@ -1672,7 +1672,7 @@ dri2_from_names(__DRIscreen *screen, int width, int height, int fourcc, img->dri_components = map->dri_components; img->dri_fourcc = map->dri_fourcc; - img->dri_format = map->pipe_format; + img->dri_format = map->dri_format; return img; }