Oh yes! Good catch =) Will send updated PR after lunch. 

#

Tim

via phone

On 12 Jul 2013, at 13:10, Theodore Watson <notifications@github.com> wrote:

> In libs/openFrameworks/gl/ofVbo.cpp:
> 
> > +}
> > +
> > +//--------------------------------------------------------------
> > +void ofVbo::drawElementsInstanced(int drawMode, int amt, int primCount) {
> > +	if(bAllocated){
> > +		bool hadVAOChnaged = vaoChanged;
> > +		bool wasBinded = bBound;
> > +		if(!wasBinded) bind();
> > +		if(bUsingIndices){
> > +			if((supportVAOs && hadVAOChnaged) || !supportVAOs) glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, indexId);
> > +#ifdef TARGET_OPENGLES
> > +			// todo: don't emit warning once OPENGL ES supports instancing, starting with version 3.0
> > +			// unfortunately there is currently no easy way within oF to query the current OpenGL version.
> > +			// https://www.khronos.org/opengles/sdk/docs/man3/xhtml/glDrawElementsInstanced.xml
> > +			ofLogWarning() << "Hardware instancing is not supported on OPENGL ES < 3.0";
> > +			glDrawElementsInstanced(drawMode, amt, GL_UNSIGNED_SHORT, NULL);
> aren't you missing the last argument here? 
> http://www.khronos.org/opengles/sdk/docs/man3/xhtml/glDrawElementsInstanced.xml
> 
> —
> Reply to this email directly or view it on GitHub.