Lisp HUG Maillist Archive

OpenGL shared context in Linux (Ubuntu 5.04)

Is there a way to get the OpenGL shared context to work under Linux?
I am using :configuration (:double-buffer t :rgba t :share  
<opengl::glxcontext>)
This works both in OS X and Windows XP. I am using LW Personal  
Edition 4.4.6 in Ubuntu Linux 5.04.

Regards,

Mika


Re: OpenGL shared context in Linux (Ubuntu 5.04)

On 30.10.2005, at 15.52, Mika Kuuskankare wrote:

> Is there a way to get the OpenGL shared context to work under Linux?
> I am using :configuration (:double-buffer t :rgba t :share  
> <opengl::glxcontext>)
> This works both in OS X and Windows XP. I am using LW Personal  
> Edition 4.4.6 in Ubuntu Linux 5.04.
>
> Regards,
>
> Mika

Hi Dave,

The schizophrenic that I am, I am now replying to my own question.
I finally took a look at the opengl source code provided by Lispworks.
In   (defmethod %make-context ((widget xt-lib:widget) opengl- 
configuration)    it seems to me that (typep share 'glxcontext)  
blocks out the glxcontext pointer. This returns NIL even if there is  
a valid glxcontext as a parameter (I am using opengl::ensure-context  
to acquire a context).

If I remove the test shared contexts work like charm in Linux too.

t. Mika


Updated at: 2020-12-10 08:50 UTC