Merged fix for PointSprite modes validity checks from master.

This commit is contained in:
Robert Osfield 2018-08-22 10:42:18 +01:00
parent 78e050db43
commit 29789f898b

View File

@ -18,6 +18,7 @@
#include <osg/Drawable>
#include <osg/ApplicationUsage>
#include <osg/ContextData>
#include <osg/PointSprite>
#include <osg/os_utils>
#include <sstream>
@ -285,6 +286,18 @@ void State::initializeExtensionProcs()
}
}
// set the validity of Modes
if (false)
{
bool pointSpriteModeValid = _glExtensions->isPointSpriteModeSupported;
#if defined( OSG_GLES1_AVAILABLE ) //point sprites don't exist on es 2.0
setModeValidity(GL_POINT_SPRITE_OES, pointSpriteModeValid);
#else
setModeValidity(GL_POINT_SPRITE_ARB, pointSpriteModeValid);
#endif
}
_extensionProcsInitialized = true;