From Mathias Fiedler, "i'm using OSG on ES 2.0 and observed that only one texture unit will be supported by OSG. In State::initializeExtensionProcs() the _glMaxTextureUnits is calculated based on osg::getGLVersionNumber(). At least for ES 2.0 this function will return 0.f since the version string will look like "OpenGL ES 2.0 ...".
From Mathias Fiedler, "i'm using OSG on ES 2.0 and observed that only one texture unit will be supported by OSG.
In State::initializeExtensionProcs() the _glMaxTextureUnits is calculated based on osg::getGLVersionNumber().
At least for ES 2.0 this function will return 0.f since the version string will look like "OpenGL ES 2.0 ...".

My proposal doesn't touch getGLVersionNumber(), since desktop OpenGL 2.0 isn't OpenGL ES 2.0.
So i changed the conditions in State::initializeExtensionProcs() for getting the number via glGetIntegerv()."


XiaoCC/osg,ghub/osg,artoolkit/osg,XiaoCC/osg,XiaoCC/osg,artoolkit/osg,stmh/osg,koshman86/osg,koshman86/osg,ntoand/osg,stmh/osg,ntoand/osg,ghub/osg,stmh/osg,omega-hub/osg,omega-hub/osg,ntoand/osg,ghub/osg,artoolkit/osg,omega-hub/osg,XiaoCC/osg,koshman86/osg,omega-hub/osg,XiaoCC/osg,ntoand/osg,ghub/osg,artoolkit/osg,stmh/osg,koshman86/osg,stmh/osg