class_docstr: An object encapsulating data necessary for a OpenGL context
  
  Parameters
  ----------
  config : dict | None
      The requested configuration.
  shared : instance of GLContext | None
      The shared context.
class_docstr_tok: ["An","object","encapsulating","data","necessary","for","a","OpenGL","context","Parameters","--","--","--","--","--","config",":","dict","|","None","The","requested","configuration",".","shared",":","instance","of","GLContext","|","None","The","shared","context","."]
docstr: Flush
  
  Parameters
  ----------
  event : instance of Event
      The event.
docstr_tok: ["Flush","Parameters","--","--","--","--","--","event",":","instance","of","Event","The","event","."]
code: def flush_commands(self, event=None):
      """Flush
  
      Parameters
      ----------
      event : instance of Event
          The event.
      """
      if self._do_CURRENT_command:
          self._do_CURRENT_command = False
          canvas = get_current_canvas()
          if canvas and hasattr(canvas, "_backend"):
              fbo = canvas._backend._vispy_get_fb_bind_location()
          else:
              fbo = 0
          self.shared.parser.parse([("CURRENT", 0, fbo)])
      self.glir.flush(self.shared.parser)
  
imports: from copy import deepcopy
  import weakref
  from .glir import GlirQueue, BaseGlirParser, GlirParser, glir_logger
  from .wrappers import BaseGlooFunctions
  from ..None import config
label_desc: Use image node_id 9 for calling the GLContext obj's underlying member method code with example usage: obj.flush_commands(event) without return types