Cycles: don't crash if OSLRenderServices::osl_ts is unset

This commit is contained in:
Mai Lavelle 2016-08-17 08:42:10 -04:00
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
1 changed files with 4 additions and 2 deletions

View File

@ -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