Adapted GLBeginEndAdapter to use state.drawQuad(..) rather than use it's local GL_QUADS emulation.
Fixed to osg::Texture for GLES support. Added automatic GLenum mode mappings in osg::PrimitiveSet to provide a fallback for non support glDrawArray/glDrawElement modes. Added finer gained error checking during StateSet::compile().
This commit is contained in:
@@ -157,9 +157,6 @@ class OSG_EXPORT GLBeginEndAdapter
|
||||
osg::ref_ptr<osg::Vec4Array> _colors;
|
||||
VertexArrayList _texCoordsList;
|
||||
VertexArrayList _vertexAttribsList;
|
||||
|
||||
typedef std::vector<unsigned short> UShortArray;
|
||||
UShortArray _indexArray;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user