Re: OSMesa and GLSL for ES2

Brian Paul <[email protected]>
Newsgroups gmane.comp.video.mesa3d.user
Message-ID <[email protected]>
On 09/26/2013 12:30 PM, Dale Emmons wrote:
> I'm building mesa 9.2 with gallium, llvmpipe and ES1/2. I want to use
> OSMesa with the GLSL ES 2.0. It seems to work if I modify
> OSMesaCreateContextExt() like so:
>
> -   attribs.profile = ST_PROFILE_DEFAULT;
> +   attribs.profile = ST_PROFILE_OPENGL_ES2;
>
> but that seems like a hack. Is there a proper way to use GLSL ES with OSMesa?

No, your hack is probably the way to go.  OSMesa was never designed with 
ES2 in mind.  Since nobody else has asked for this, I don't think I'd 
change the OSMesa interface just for this case.

-Brian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.