From 285947318f8bc74080fdecf2a0fe143dbbdc69c6 Mon Sep 17 00:00:00 2001 From: Lukas Toenne Date: Sun, 21 Oct 2012 09:10:47 +0000 Subject: [PATCH] Fix for OSL closure base class. The 'blur' method is not implemented and must be declared pure virtual ('= 0') to avoid compiler error (on Ubuntu 12.04, gcc 4.6.3). --- intern/cycles/kernel/osl/osl_closures.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intern/cycles/kernel/osl/osl_closures.h b/intern/cycles/kernel/osl/osl_closures.h index 873e03673c3..574cb685db5 100644 --- a/intern/cycles/kernel/osl/osl_closures.h +++ b/intern/cycles/kernel/osl/osl_closures.h @@ -77,7 +77,7 @@ public: int shaderdata_flag() const { return m_shaderdata_flag; } ClosureType shaderclosure_type() const { return sc.type; } - virtual void blur(float roughness); + virtual void blur(float roughness) = 0; virtual float3 eval_reflect(const float3 &omega_out, const float3 &omega_in, float &pdf) const = 0; virtual float3 eval_transmit(const float3 &omega_out, const float3 &omega_in, float &pdf) const = 0;