Fix OpenGL stack overflow in worktable