From be13c2202db7ee49222c81dc1acd992a78e49ca0 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 12 Jun 2014 15:24:34 +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/trunk@14255 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 43e6a7a63..c7891eb84 100644 --- a/src/osg/State.cpp +++ b/src/osg/State.cpp @@ -1423,9 +1423,6 @@ bool State::convertVertexShaderSourceToOsgBuiltIns(std::string& source) const OSG_INFO<<"++Before Converted source "<