def is_direct(self): return glx.glXIsDirect(self._x_display, self._context)
def is_direct(self): return glx.glXIsDirect(self.x_display, self.glx_context)