From 8ae8966177632c734e6741b08b132d02f1fb21dc Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sat, 24 Mar 2018 11:23:59 +0000 Subject: [PATCH] Fixed read shader to safer ref version --- examples/osgshadergen/osgshadergen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/osgshadergen/osgshadergen.cpp b/examples/osgshadergen/osgshadergen.cpp index a482836f1..2e027349b 100644 --- a/examples/osgshadergen/osgshadergen.cpp +++ b/examples/osgshadergen/osgshadergen.cpp @@ -116,7 +116,7 @@ int main(int argc, char** argv) std::string shaderFilename; while(arguments.read("--shader", shaderFilename)) { - osg::ref_ptr shader = osgDB::readShaderFile(shaderFilename); + osg::ref_ptr shader = osgDB::readRefShaderFile(shaderFilename); if (shader.valid()) uberProgram->addShader(shader.get()); }