diff --git a/source/MaterialXTest/MaterialXRender/RenderUtil.cpp b/source/MaterialXTest/MaterialXRender/RenderUtil.cpp index 853ffc4e5d..179eff3e8e 100644 --- a/source/MaterialXTest/MaterialXRender/RenderUtil.cpp +++ b/source/MaterialXTest/MaterialXRender/RenderUtil.cpp @@ -334,7 +334,8 @@ bool ShaderRenderTester::validate(const mx::FilePathVec& testRootPaths, const mx if (doctoBake.bakeFile == outputBakeFile.asString()) { outputBakeFile.removeExtension(); - outputBakeFile = outputPath / (outputBakeFile.asString() + "_baked.mtlx"); + // Bake to "xml" to avoid trying to render baked in render tests + outputBakeFile = outputPath / (outputBakeFile.asString() + "_baked.xml"); runBake(doc, imageSearchPath, searchPath, outputBakeFile, doctoBake, log); break;