diff options
Diffstat (limited to 'src/gallium/state_trackers/dri/drisw.c')
-rw-r--r-- | src/gallium/state_trackers/dri/drisw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/dri/drisw.c b/src/gallium/state_trackers/dri/drisw.c index 1fba71bdd97..886f94dc02c 100644 --- a/src/gallium/state_trackers/dri/drisw.c +++ b/src/gallium/state_trackers/dri/drisw.c @@ -129,7 +129,7 @@ get_image_shm(__DRIdrawable *dPriv, int x, int y, int width, int height, if (loader->base.version < 4 || !loader->getImageShm) return FALSE; - if (!res->screen->resource_get_handle(res->screen, NULL, res, &whandle, PIPE_HANDLE_USAGE_WRITE)) + if (!res->screen->resource_get_handle(res->screen, NULL, res, &whandle, PIPE_HANDLE_USAGE_FRAMEBUFFER_WRITE)) return FALSE; loader->getImageShm(dPriv, x, y, width, height, whandle.handle, dPriv->loaderPrivate); |