Ported GL2Extentions across to using the new GL extensions approach - cutting code count by 3000 lines!
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14566 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
@@ -131,6 +131,10 @@ State::State():
|
||||
|
||||
State::~State()
|
||||
{
|
||||
// delete the GL2Extensions object associated with this osg::State.
|
||||
GL2Extensions::Set(_contextID, 0);
|
||||
_gl2Extentsions = 0;
|
||||
|
||||
//_texCoordArrayList.clear();
|
||||
|
||||
//_vertexAttribArrayList.clear();
|
||||
@@ -918,6 +922,9 @@ void State::initializeExtensionProcs()
|
||||
{
|
||||
if (_extensionProcsInitialized) return;
|
||||
|
||||
_gl2Extentsions = new GL2Extensions(_contextID);
|
||||
GL2Extensions::Set(_contextID, _gl2Extentsions.get());
|
||||
|
||||
setGLExtensionFuncPtr(_glClientActiveTexture,"glClientActiveTexture","glClientActiveTextureARB");
|
||||
setGLExtensionFuncPtr(_glActiveTexture, "glActiveTexture","glActiveTextureARB");
|
||||
setGLExtensionFuncPtr(_glFogCoordPointer, "glFogCoordPointer","glFogCoordPointerEXT");
|
||||
|
||||
Reference in New Issue
Block a user