glx: Use loader_open_device() helper
authorDerek Foreman <derekf@osg.samsung.com>
Wed, 17 Jun 2015 16:28:50 +0000 (11:28 -0500)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 23 Jun 2015 15:54:53 +0000 (16:54 +0100)
commit324ee9b391ea2db4b74709d30a131e79055bf071
tree7f52cf0f5bd97aa32daff431d94cfe88ae1c6879
parent9c927463492dea14d82ebdd77f711f86b0e6fc5e
glx: Use loader_open_device() helper

We've moved the open with CLOEXEC idiom into a helper function, so
call it instead of duplicating the code here.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
src/glx/dri2_glx.c