glx: use ARRAY_SIZE from macros.h