diff --git a/src/gallium/frontends/dri/dri_helpers.c b/src/gallium/frontends/dri/dri_helpers.c index 4c10e6f3d6c..82c77bc9693 100644 --- a/src/gallium/frontends/dri/dri_helpers.c +++ b/src/gallium/frontends/dri/dri_helpers.c @@ -334,7 +334,7 @@ dri2_create_image_from_renderbuffer2(__DRIcontext *context, return NULL; } - img->dri_format = driGLFormatToImageFormat(rb->Format); + img->dri_format = tex->format; img->internal_format = rb->InternalFormat; img->loader_private = loaderPrivate; img->screen = dri_ctx->screen;