Sounds good to me, thanks for the changes. So this will be included in GL2
builds, excellent.
-Paul
On 2/9/2012 8:34 AM, Robert Osfield wrote:
Hi Paul,
I am just working on merging your gl3example.cpp into svn/trunk and
have renamed it osgsimplegl3 as it's a very bare bones little viewer
example. I have also added the following lines just before the
viewer.run() so that the example works fine on GL2 etc. builds.
// for non GL3/GL4 and non GLES2 platforms we need enable the osg_
uniforms that the shaders will use,
// you don't need thse two lines on GL3/GL4 and GLES2 specific
builds as these will be enable by default.
gc->getState()->setUseModelViewAndProjectionUniforms(true);
gc->getState()->setUseVertexAttributeAliasing(true);
Is this OK?
Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org