def _create_glx_context(self, share): if share: return glx.glXCreateNewContext(self._display, self._fbconfig, glx.GLX_RGBA_TYPE, share._context, True) else: return glx.glXCreateNewContext(self._display, self._fbconfig, glx.GLX_RGBA_TYPE, 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.glXCreateNewContext( self.config.canvas.display._display, self.config._fbconfig, glx.GLX_RGBA_TYPE, 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.glXCreateNewContext(self.config.canvas.display._display, self.config._fbconfig, glx.GLX_RGBA_TYPE, share_context, True)