Move get_alignment inlined function to gfx/gl.c