Esempio n. 1
0
File: xlib.py Progetto: arokem/Fos
    def detach(self):
        if not self.canvas:
            return

        self.set_current()
        gl.glFlush() # needs to be in try/except?

        super(XlibContext13, self).detach()

        glx.glXMakeContextCurrent(self.x_display, 0, 0, None)
        if self.glx_window:
            glx.glXDestroyWindow(self.x_display, self.glx_window)
            self.glx_window = None
Esempio n. 2
0
    def detach(self):
        if not self.canvas:
            return

        self.set_current()
        gl.glFlush()  # needs to be in try/except?

        super(XlibContext13, self).detach()

        glx.glXMakeContextCurrent(self.x_display, 0, 0, None)
        if self.glx_window:
            glx.glXDestroyWindow(self.x_display, self.glx_window)
            self.glx_window = None
Esempio n. 3
0
File: xlib.py Progetto: arokem/Fos
 def set_current(self):
     glx.glXMakeContextCurrent(
         self.x_display, self.glx_window, self.glx_window, self.glx_context)
     super(XlibContext13, self).set_current()
Esempio n. 4
0
 def set_current(self):
     glx.glXMakeContextCurrent(self.x_display, self.glx_window,
                               self.glx_window, self.glx_context)
     super(XlibContext13, self).set_current()