From Bjorn Blissing, "I stumbled upon a strange ifdef-case inside Geometry.cpp
From Bjorn Blissing, "I stumbled upon a strange ifdef-case inside Geometry.cpp

Currently the code looks like this:

Code:
    DrawElementsUByte* elems = new DrawElementsUByte(PrimitiveSet::TRIANGLES);
    elems->push_back(0);
    elems->push_back(1);
    elems->push_back(2);

    elems->push_back(2);
    elems->push_back(3);
    elems->push_back(0);
    geom->addPrimitiveSet(elems);
    geom->addPrimitiveSet(new DrawArrays(PrimitiveSet::QUADS,0,4));

The second condition looked really strange (note the ! sign), and results in pretty much all code paths uses the first code. The correct version should probably be that only people with GLES1 or GLES2 should use GL_TRIANGLES to simulate quads. And all others should use the native support for GL_QUADS.
"

marchelbling/osg,scrawl/osg,artoolkit/osg,tomasthoresen/osg,tomasthoresen/osg,jtorresfabra/osg,jtorresfabra/osg,tomasthoresen/osg,scrawl/osg,tomasthoresen/osg,jtorresfabra/osg,artoolkit/osg,marchelbling/osg,openscenegraph/osg,jtorresfabra/osg,openscenegraph/osg,artoolkit/osg,scrawl/osg,openscenegraph/osg,marchelbling/osg,artoolkit/osg,marchelbling/osg,openscenegraph/osg,scrawl/osg