HI Aurelien,

I have just done a review of your fix and it feels a bit awkward which
starts to make me wonder if this extension might be best supported in
a different way.  I was expect GL_PATCH_SIZE to be associated with the
Program object like the rest of the ProgramParameters but it does look
like it is looking at the code.  You description make it sound more
decoupled as well.  I'm still working on understanding it better but
am starting to wonder whether this extension might be best supported
via separate osg::StateAttribute.

Thoughts?
Robert.

On 6 June 2013 09:21, Aurelien Albert <[email protected]> wrote:
> Hi,
>
> I've got some problems using tesselation shaders with GL_PATCH_SIZE other 
> than 3.
>
> The problem is that GL_PATCH_SIZE must be setted before each use of the 
> program, so if another shader is in use in the scene graph, it will reset 
> GL_PATCH_SIZE to 3 when compiled.
>
> Now the GL_PATCH_SIZE is set in the "osg::Program::apply" method, and only if 
> needed.
>
> Cheers,
> Aurelien
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=54475#54475
>
>
>
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to