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
This commit is contained in:
Robert Osfield 2015-02-26 17:49:36 +00:00
parent 63acee9ee3
commit 77f662f9f7
2 changed files with 4 additions and 1 deletions

View File

@ -315,6 +315,8 @@ class OSG_EXPORT GLExtensions : public osg::Referenced
bool isBufferObjectSupported; bool isBufferObjectSupported;
bool isPBOSupported; bool isPBOSupported;
bool isTBOSupported; bool isTBOSupported;
bool isVAOSupported;
bool isTransformFeedbackSupported;
void (GL_APIENTRY * glGenBuffers) (GLsizei n, GLuint *buffers); void (GL_APIENTRY * glGenBuffers) (GLsizei n, GLuint *buffers);
void (GL_APIENTRY * glBindBuffer) (GLenum target, GLuint buffer); void (GL_APIENTRY * glBindBuffer) (GLenum target, GLuint buffer);

View File

@ -680,7 +680,8 @@ GLExtensions::GLExtensions(unsigned int contextID)
isPBOSupported = OSG_GL3_FEATURES || osg::isGLExtensionSupported(contextID,"GL_ARB_pixel_buffer_object"); isPBOSupported = OSG_GL3_FEATURES || osg::isGLExtensionSupported(contextID,"GL_ARB_pixel_buffer_object");
isUniformBufferObjectSupported = osg::isGLExtensionSupported(contextID, "GL_ARB_uniform_buffer_object"); isUniformBufferObjectSupported = osg::isGLExtensionSupported(contextID, "GL_ARB_uniform_buffer_object");
isTBOSupported = osg::isGLExtensionSupported(contextID,"GL_ARB_texture_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 // BlendFunc extensions
isBlendFuncSeparateSupported = OSG_GLES2_FEATURES || OSG_GL3_FEATURES || isBlendFuncSeparateSupported = OSG_GLES2_FEATURES || OSG_GL3_FEATURES ||