diff options
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/kernel/osl/osl_services.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/intern/cycles/kernel/osl/osl_services.cpp b/intern/cycles/kernel/osl/osl_services.cpp index 153ebad6cd2..422af32ee79 100644 --- a/intern/cycles/kernel/osl/osl_services.cpp +++ b/intern/cycles/kernel/osl/osl_services.cpp @@ -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 |