Fixed warning

This commit is contained in:
Robert Osfield 2013-02-06 11:16:29 +00:00
parent 09f42e1411
commit 0b3da415ef

View File

@ -51,14 +51,14 @@ osg::Program* Utility::createProgram(std::string vs, std::string fs)
if(!readFile((char*)vs.c_str(), vertSource))
{
printf("shader source not found\n");
return false;
return 0;
}
std::string fragSource;
if(!readFile((char*)fs.c_str(), fragSource))
{
printf("shader source not found\n");
return false;
return 0;
}