Move glx usage to implementation