[osg-users] PolygonMode::FRONT / BACK causes Warning

Robert Osfield robert.osfield at gmail.com
Wed Jul 23 08:08:20 PDT 2008

On Wed, Jul 23, 2008 at 3:34 PM, Paul Martz <pmartz at skew-matrix.com> wrote:
> Looks like uninitialized variables in the constructor to me:
>        PolygonMode(Face face,Mode mode) { setMode(face,mode); }
> If you specify FRONT in the constructor, the back mode never gets
> initialized. You should fix this and post your change to osg-submissions.

Well spotted Paul, looking into the setMode method, in the case of
setting just FRONT or BACK the setMode method won't be sufficient for
initializing the opposite face.

I have fixed this and checked the fix into SVN.


More information about the osg-users mailing list