diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/targets/d3dadapter9/drm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/targets/d3dadapter9/drm.c b/src/gallium/targets/d3dadapter9/drm.c index c890191124e..84cfb943eaf 100644 --- a/src/gallium/targets/d3dadapter9/drm.c +++ b/src/gallium/targets/d3dadapter9/drm.c @@ -216,6 +216,8 @@ drm_create_adapter( int fd, ctx->base.destroy = drm_destroy; + /* Although the fd is provided from external source, mesa/nine + * takes ownership of it. */ fd = loader_get_user_preferred_fd(fd, &different_device); ctx->fd = fd; ctx->base.linear_framebuffer = !!different_device; |