glx: Fix copy/paste bug in glXWaitX and glXWaitGL