Thanks Sergey, changes look appropriate, now merged and submitted to svn/trunk and OSG-3.2 branch.
On 31 July 2013 06:03, Sergey Kurdakov <[email protected]> wrote: > Hi Robert, > > > this is submission on warning with OpenGL ES 2.0 > > using osg 3.2 : "Detected OpenGL error invalid enumerant" on this line in > State.cpp > > glGetIntegerv(GL_MAX_TEXTURE_COORDS,&_glMaxTextureCoords); > > ( in following part of code in function void > State::initializeExtensionProcs() ) > > if ( osg::getGLVersionNumber() >= 2.0 || osg::isGLExtensionSupported(_ > contextID,"GL_ARB_vertex_shader") || OSG_GLES2_FEATURES) > { > > glGetIntegerv(GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS,&_glMaxTextureUnits); > glGetIntegerv(GL_MAX_TEXTURE_COORDS,&_glMaxTextureCoords); > } > > > now replaced with > > if ( osg::getGLVersionNumber() >= 2.0 || > osg::isGLExtensionSupported(_contextID,"GL_ARB_vertex_shader") || > OSG_GLES2_FEATURES) > { > > glGetIntegerv(GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS,&_glMaxTextureUnits); > if(OSG_GLES2_FEATURES) > _glMaxTextureCoords = _glMaxTextureUnits; > else > glGetIntegerv(GL_MAX_TEXTURE_COORDS,&_glMaxTextureCoords); > } > > see file in attachment. > > checked my code and warning disappeared. > > Regards > Sergey > > > > > _______________________________________________ > 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
