gallium/dri: copy image use in dup_image
Don't lose the use flags when dup'ing an image. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Reviewed-by: Daniel Stone <daniels@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8106>
This commit is contained in:
parent
c03e79d783
commit
3701cb9439
|
@ -1326,6 +1326,7 @@ dri2_dup_image(__DRIimage *image, void *loaderPrivate)
|
|||
img->dri_format = image->dri_format;
|
||||
/* This should be 0 for sub images, but dup is also used for base images. */
|
||||
img->dri_components = image->dri_components;
|
||||
img->use = image->use;
|
||||
img->loader_private = loaderPrivate;
|
||||
img->sPriv = image->sPriv;
|
||||
|
||||
|
|
Loading…
Reference in New Issue