GLX functions should not be called between glBegin and glEnd operations. If a GLX function is called within a glBegin/ glEnd pair, then the result is undefined; however, no error is reported.