LoadMemoryCompiledShader return value

Zap Andersson

Is there any particular reason the LoadMemoryCompiledShader call returns true even if it fails to parse the shader?

Code at the end of the function reads:


        // if (debug()) {

        //     std::string s = r->print ();

        //     if (s.length())

        //         info ("%s", s.c_str());

        // }

    } else {

        error ("Unable to parse preloaded shader \"%s\"", shadername);



    return true;





Join osl-dev@lists.aswf.io to automatically receive all group messages.