diff options
author | Thomas Dinges <blender@dingto.org> | 2014-07-25 13:23:15 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2014-07-25 13:23:15 +0400 |
commit | dadf31f0b85d778009602edca21234e90d85ad19 (patch) | |
tree | 2df2cbbac0948a5536c3834f69652d8a13a10ec9 /intern/cycles/kernel/osl/osl_services.h | |
parent | 9a904a3857c262827ac9dea7e4ed684df2453fcf (diff) |
One more fix for new OSL libs.
Diffstat (limited to 'intern/cycles/kernel/osl/osl_services.h')
-rw-r--r-- | intern/cycles/kernel/osl/osl_services.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/intern/cycles/kernel/osl/osl_services.h b/intern/cycles/kernel/osl/osl_services.h index 2100a33294f..34c8899d357 100644 --- a/intern/cycles/kernel/osl/osl_services.h +++ b/intern/cycles/kernel/osl/osl_services.h @@ -106,7 +106,7 @@ public: OSL::ShaderGlobals *sg, const OSL::Vec3 &R, const OSL::Vec3 &dRdx, const OSL::Vec3 &dRdy, float *result); - bool get_texture_info(ustring filename, int subimage, + bool get_texture_info(OSL::ShaderGlobals *sg, ustring filename, int subimage, ustring dataname, TypeDesc datatype, void *data); static bool get_background_attribute(KernelGlobals *kg, ShaderData *sd, ustring name, @@ -215,6 +215,12 @@ public: void *renderstate, void *val) { return get_userdata(derivatives, name, type, (OSL::ShaderGlobals *) renderstate, val); } + + bool get_texture_info(OSL::ShaderGlobals *sg, ustring filename, int subimage, + ustring dataname, TypeDesc datatype, void *data) { + return get_texture_info(NULL, filename, subimage, + dataname, datatype, *data); + } #endif private: KernelGlobals *kernel_globals; |