From f127220582a308984df71ddc052725b5c451ddfe Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 12 Jun 2014 15:24:31 +0000 Subject: [PATCH] Added if () blocks to State::convertVertexShaderSourceToOsgBuiltIns() to ensure that only parts of the shader than need replacing are replaced. git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/branches/OpenSceneGraph-3.2@14254 16af8721-9629-0410-8352-f15c8da7e697 --- src/osg/State.cpp | 38 ++++++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/src/osg/State.cpp b/src/osg/State.cpp index 6f9794aaa..7e427f91e 100644 --- a/src/osg/State.cpp +++ b/src/osg/State.cpp @@ -1372,9 +1372,6 @@ bool State::convertVertexShaderSourceToOsgBuiltIns(std::string& source) const OSG_INFO<<"++Before Converted source "<