def _create_glx_context(self, share): if share: return glx.glXCreateContext(self._display, self._visual_info, share._context, True) else: return glx.glXCreateContext(self._display, self._visual_info, None, True)
def _create_glx_context(self, share): if self.config._requires_gl_3(): raise gl.ContextException("Require GLX_ARB_create_context extension to create " + "OpenGL 3 contexts.") if share: share_context = share.glx_context else: share_context = None return glx.glXCreateContext(self.config.canvas.display._display, self.config._visual_info, share_context, True)
def _create_glx_context(self, share): if self.config.requires_gl_3(): raise gl.ContextException( 'Require GLX_ARB_create_context extension to create OpenGL 3 contexts.') if share: share_context = share.glx_context else: share_context = None return glx.glXCreateContext(self.config.canvas.display._display, self.config._visual_info, share_context, True)