Update:
I added the following to include/osg/Shader just above the Shader class 
definition

#ifndef GL_GEOMETRY_SHADER_EXT
#define                GL_GEOMETRY_SHADER_EXT   0x8DD9
#endif
#ifndef GL_GEOMETRY_VERTICES_OUT_EXT
#define                GL_GEOMETRY_VERTICES_OUT_EXT   0x8DDA
#endif
#ifndef GL_GEOMETRY_INPUT_TYPE_EXT
#define                GL_GEOMETRY_INPUT_TYPE_EXT   0x8DDB
#endif
#ifndef GL_GEOMETRY_OUTPUT_TYPE_EXT
#define                GL_GEOMETRY_OUTPUT_TYPE_EXT   0x8DDC
#endif

Everything builds fine except example_osgtransformfeedback fails with:
GL_RASTERIZER_DISCARD was not declared

From: osg-users [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf 
Of Jason MacDonald
Sent: Tuesday, February 03, 2015 9:24 AM
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] GL_GEOMETRY_SHADER_EXT not declared

I just checked out the latest revision from the trunk (rev 14678) and attempted 
to compile.
I receive the following compiler error:
In file included from 
C:/Users/jason/Desktop/dev/OpenSceneGraph/include/osg/StateAttribute:20:0,
                 from 
C:/Users/jason/Desktop/dev/OpenSceneGraph/include/osg/AlphaFunc:17,
                 from 
C:\Users\jason\Desktop\dev\OpenSceneGraph\src\osg\AlphaFunc.cpp:14:
C:/Users/jason/Desktop/dev/OpenSceneGraph/include/osg/Shader:93:24: error: 
'GL_GEOMETRY_SHADER_EXT' was not declared in this scope GEOMETRY = 
GL_GEOMETRY_SHADER_EXT,

It appears this was originally defined in include/osg/GL2Extensions but was 
recently removed? What is the proper fix to redefine this? (and other possible 
errors I will receive)

Thank you,
Jason
This email and any files transmitted with it from The Charles Machine Works, 
Inc. are confidential and intended solely for the use of the individual or 
entity to which they are addressed. If you have received this email in error 
please notify the sender. Our company accepts no liability for the contents of 
this email, or for the consequences of any actions taken on the basis of the 
information provided, unless that information is subsequently confirmed in 
writing. Please note that any views or opinions presented in this email are 
solely those of the author and do not necessarily represent those of the 
company. Finally, the recipient should check this email and any attachments for 
the presence of viruses. The company accepts no liability for any damage caused 
by any virus transmitted by this email.
This email and any files transmitted with it from The Charles Machine Works, 
Inc. are confidential and intended solely for the use of the individual or 
entity to which they are addressed. If you have received this email in error 
please notify the sender. Our company accepts no liability for the contents of 
this email, or for the consequences of any actions taken on the basis of the 
information provided, unless that information is subsequently confirmed in 
writing. Please note that any views or opinions presented in this email are 
solely those of the author and do not necessarily represent those of the 
company. Finally, the recipient should check this email and any attachments for 
the presence of viruses. The company accepts no liability for any damage caused 
by any virus transmitted by this email.
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to