Cycles: don't crash if OSLRenderServices::osl_ts is unset
This commit is contained in:
parent
23e3b9f35b
commit
b06a70323c
Notes:
blender-bot
2023-02-14 07:38:38 +01:00
Referenced by issue #49214, Crash Blender 2.77 in Win7x64amd card
|
@ -127,8 +127,10 @@ OSLRenderServices::OSLRenderServices()
|
|||
|
||||
OSLRenderServices::~OSLRenderServices()
|
||||
{
|
||||
VLOG(2) << "OSL texture system stats:\n"
|
||||
<< osl_ts->getstats();
|
||||
if(osl_ts) {
|
||||
VLOG(2) << "OSL texture system stats:\n"
|
||||
<< osl_ts->getstats();
|
||||
}
|
||||
#ifdef WITH_PTEX
|
||||
ptex_cache->release();
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue