[Mesa-users] OSMesa and GLSL for ES2

Brian Paul brianp at vmware.com
Thu Sep 26 15:58:26 PDT 2013


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



More information about the mesa-users mailing list