Move GL code to bridges.