(self)
Frees resources associated with this context.
Frees resources associated with this context.
Frees resources associated with this context .
def _platform_free(self):
    """Frees resources associated with this context."""
    if self._context:
      current_context = EGL.eglGetCurrentContext()
      if current_context and self._context.address == current_context.address:
        EGL.eglMakeCurrent(EGL_DISPLAY, EGL.EGL_NO_SURFACE,
                           EGL.EGL_NO_SURFACE, EGL.EGL_NO_CONTEXT)
      EGL.eglDestroyContext(EGL_DISPLAY, self._context)
    self._context = None
def _platform_free ( self ) : if self . _context : current_context = EGL . eglGetCurrentContext ( ) if current_context and self . _context . address == current_context . address : EGL . eglMakeCurrent ( EGL_DISPLAY , EGL . EGL_NO_SURFACE , EGL . EGL_NO_SURFACE , EGL . EGL_NO_CONTEXT ) EGL . eglDestroyContext ( EGL_DISPLAY , self . _context ) self . _context = None