Skip to content

Commit baa676e

Browse files
committed
Fix image search path for tests
Passed in image search path was not being used by image handler so some images would not be found.
1 parent 278dc95 commit baa676e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

source/MaterialXTest/MaterialXRenderMsl/RenderMsl.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ bool runRenderer(const std::string& shaderName,
165165
std::ostream& log,
166166
const GenShaderUtil::TestSuiteOptions& testOptions,
167167
RenderUtil::RenderProfileTimes& profileTimes,
168-
const mx::FileSearchPath& /*imageSearchPath*/,
168+
const mx::FileSearchPath& imageSearchPath,
169169
const std::string& outputPath,
170170
mx::ImageVec* imageVec)
171171
{
@@ -351,7 +351,7 @@ bool runRenderer(const std::string& shaderName,
351351

352352
{
353353
mx::ScopedTimer renderTimer(&profileTimes.languageTimes.renderTime);
354-
_renderer->getImageHandler()->setSearchPath(mx::getDefaultDataSearchPath());
354+
_renderer->getImageHandler()->setSearchPath(imageSearchPath);
355355
unsigned int width = (unsigned int) testOptions.renderSize[0] * supersampleFactor;
356356
unsigned int height = (unsigned int) testOptions.renderSize[1] * supersampleFactor;
357357
_renderer->setSize(width, height);

0 commit comments

Comments
 (0)