mp3butcher wrote: > Here's a small patch adressing win32 problem > > Don't know how to "link" > osg/Program #ifndef GL_ARB_transform_feedback2 > with > osg/GLExtensions isTransformFeedbackSupported = > osg::isGLExtensionSupported(contextID, "GL_ARB_transform_feedback2"); > > PS: reading the specs > https://www.opengl.org/registry/specs/ARB/transform_feedback2.txt > https://www.opengl.org/registry/specs/ARB/transform_feedback3.txt > I have doubts about portability with no AMD/NVIDIA GTX "big" cards. > Would require users feedback from exotic driver... > > > Code: > > Index: include/osg/GLExtensions > =================================================================== > --- include/osg/GLExtensions (révision 14654) > +++ include/osg/GLExtensions (copie de travail) > @@ -315,6 +315,8 @@ > 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); > Index: include/osg/Program > =================================================================== > --- include/osg/Program (révision 14654) > +++ include/osg/Program (copie de travail) > @@ -16,6 +16,7 @@ > /* file: include/osg/Program > * author: Mike Weiblen 2008-01-02 > * Holger Helmich 2010-10-21 > + * Julien Valentin 2015-01-09 > */ > > #ifndef OSG_PROGRAM > @@ -31,6 +32,12 @@ > #include <osg/Shader> > #include <osg/StateAttribute> > > +#ifndef GL_ARB_transform_feedback2 > + #define GL_RASTERIZER_DISCARD 0x8C89 > + #define GL_INTERLEAVED_ATTRIBS 0x8C8C > + #define GL_SEPARATE_ATTRIBS 0x8C8D > +#endif > + > namespace osg { > > class State; > Index: src/osg/GLExtensions.cpp > =================================================================== > --- src/osg/GLExtensions.cpp (révision 14654) > +++ src/osg/GLExtensions.cpp (copie de travail) > @@ -678,8 +678,9 @@ > setGLExtensionFuncPtr(glTexBuffer, "glTexBuffer","glTexBufferARB" ); > > 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"); > > > > >
------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=62273#62273 _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
