Пример #1
0
Файл: xlib.py Проект: 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
Пример #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
Пример #3
0
Файл: xlib.py Проект: 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()
Пример #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()