Fixed a typo in MTLPatchShaderSource

This fixes a shader compile error when enabling
the OPENSUBDIV_GREGORY_EVAL_TRUE_DERIVATIVES option.
This commit is contained in:
David G Yu 2017-07-25 12:15:31 -07:00
parent a65c7aca61
commit 58d867feea

View File

@ -103,7 +103,7 @@ namespace OpenSubdiv {
std::stringstream ss;
ss << "#define OSD_PATCH_BASIS_METAL 1\n";
#if defined(OPENSUBDIV_GREGORY_EVAL_TRUE_DERIVATIVES)
ss << "define OPENSUBDIV_GREGORY_EVAL_TRUE_DERIVATIVES 1\n";
ss << "#define OPENSUBDIV_GREGORY_EVAL_TRUE_DERIVATIVES 1\n";
#endif
ss << patchBasisShaderSource;
return ss.str();