Fixed build with OSG_USE_REF_PTR_IMPLICIT_OUTPUT_CONVERSION set to OFF

This commit is contained in:
Robert Osfield 2017-11-29 14:44:00 +00:00
parent a6069c3226
commit d3815759a9

View File

@ -194,7 +194,7 @@ class ReaderWriterGLSL : public osgDB::ReaderWriter
osgDB::ifstream istream(fileName.c_str(), std::ios::in | std::ios::binary);
if(!istream) return ReadResult::FILE_NOT_HANDLED;
ReadResult rr = readShader(istream, local_opt);
ReadResult rr = readShader(istream, local_opt.get());
if(rr.validShader())
{
osg::Shader* shader = rr.getShader();