Skip to content

Commit 6594a24

Browse files
committed
Windows crash bugfix
1 parent 85e4d1c commit 6594a24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GafferCycles/IECoreCyclesPreview/Renderer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2773,9 +2773,9 @@ class CyclesRenderer final : public IECoreScenePreview::Renderer
27732773
{
27742774
// Set path to find shaders & cuda cubins. This code exists as well in the python module, but left here if ever IECoreCycles is split away from GafferCycles.
27752775
#ifdef _WIN32
2776-
string paths = boost::str( boost::format( "%s;%s\\\\cycles;%s" ) % getenv( "GAFFERCYCLES" ) % getenv( "GAFFER_ROOT" ) % getenv( "GAFFER_EXTENSION_PATHS" ) );
2776+
std::string paths = ccl::string_printf( "%s;%s\\\\cycles;%s", getenv( "GAFFERCYCLES" ), getenv( "GAFFER_ROOT" ), getenv( "GAFFER_EXTENSION_PATHS" ) );
27772777
#else
2778-
string paths = boost::str( boost::format( "%s:%s/cycles:%s" ) % getenv( "GAFFERCYCLES" ) % getenv( "GAFFER_ROOT" ) % getenv( "GAFFER_EXTENSION_PATHS" ) );
2778+
std::string paths = ccl::string_printf( "%s:%s/cycles:%s" , getenv( "GAFFERCYCLES" ), getenv( "GAFFER_ROOT" ), getenv( "GAFFER_EXTENSION_PATHS" ) );
27792779
#endif
27802780
const char *kernelFile = "source/kernel/kernel_globals.h";
27812781
SearchPath searchPath( paths );

0 commit comments

Comments
 (0)