Gpi drawing intermingled with OpenGL drawing is only allowed on Indirect contexts that use Gpi to blit their OpenGL rendering to the screen. Prior to doing any Gpi drawing, the user must call pglWaitGL in order to flush the OpenGL rendering stream. pglWaitGL is ignored if there is no current context.