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:
Robert Osfield
2014-12-04 16:22:31 +00:00
parent f8d53b7c8d
commit 66da1328f8
9 changed files with 422 additions and 3375 deletions

View File

@@ -918,8 +918,8 @@ void FrameBufferObject::apply(State &state, BindTarget target) const
{
if (_drawBuffers.size() > 0)
{
GL2Extensions *gl2e = GL2Extensions::Get(state.getContextID(), true );
if (gl2e && gl2e->isDrawBuffersSupported())
GL2Extensions *gl2e = state.get<GL2Extensions>();
if (gl2e && gl2e->glDrawBuffers)
{
gl2e->glDrawBuffers(_drawBuffers.size(), &(_drawBuffers[0]));
}