From 77f662f9f7efcd763765937be15d3b4c027bf0ba Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 26 Feb 2015 17:49:36 +0000 Subject: [PATCH] From Julien Valentin and Alberto Luaces, added support for transform feedback extensions git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14728 16af8721-9629-0410-8352-f15c8da7e697 --- include/osg/GLExtensions | 2 ++ src/osg/GLExtensions.cpp | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/osg/GLExtensions b/include/osg/GLExtensions index ee6d00b5f..ff0bb3ba8 100644 --- a/include/osg/GLExtensions +++ b/include/osg/GLExtensions @@ -315,6 +315,8 @@ class OSG_EXPORT GLExtensions : public osg::Referenced bool isBufferObjectSupported; bool isPBOSupported; bool isTBOSupported; + bool isVAOSupported; + bool isTransformFeedbackSupported; void (GL_APIENTRY * glGenBuffers) (GLsizei n, GLuint *buffers); void (GL_APIENTRY * glBindBuffer) (GLenum target, GLuint buffer); diff --git a/src/osg/GLExtensions.cpp b/src/osg/GLExtensions.cpp index d5bc9de44..fa1c365af 100644 --- a/src/osg/GLExtensions.cpp +++ b/src/osg/GLExtensions.cpp @@ -680,7 +680,8 @@ GLExtensions::GLExtensions(unsigned int contextID) isPBOSupported = OSG_GL3_FEATURES || osg::isGLExtensionSupported(contextID,"GL_ARB_pixel_buffer_object"); isUniformBufferObjectSupported = osg::isGLExtensionSupported(contextID, "GL_ARB_uniform_buffer_object"); isTBOSupported = osg::isGLExtensionSupported(contextID,"GL_ARB_texture_buffer_object"); - + isVAOSupported = osg::isGLExtensionSupported(contextID, "GL_ARB_vertex_array_object"); + isTransformFeedbackSupported = osg::isGLExtensionSupported(contextID, "GL_ARB_transform_feedback2"); // BlendFunc extensions isBlendFuncSeparateSupported = OSG_GLES2_FEATURES || OSG_GL3_FEATURES ||