Fixed build with OSG_USE_REF_PTR_IMPLICIT_OUTPUT_CONVERSION set to OFF
This commit is contained in:
parent
a6069c3226
commit
d3815759a9
@ -194,7 +194,7 @@ class ReaderWriterGLSL : public osgDB::ReaderWriter
|
|||||||
|
|
||||||
osgDB::ifstream istream(fileName.c_str(), std::ios::in | std::ios::binary);
|
osgDB::ifstream istream(fileName.c_str(), std::ios::in | std::ios::binary);
|
||||||
if(!istream) return ReadResult::FILE_NOT_HANDLED;
|
if(!istream) return ReadResult::FILE_NOT_HANDLED;
|
||||||
ReadResult rr = readShader(istream, local_opt);
|
ReadResult rr = readShader(istream, local_opt.get());
|
||||||
if(rr.validShader())
|
if(rr.validShader())
|
||||||
{
|
{
|
||||||
osg::Shader* shader = rr.getShader();
|
osg::Shader* shader = rr.getShader();
|
||||||
|
Loading…
Reference in New Issue
Block a user