Cleanup: Remove support for OSL versions < 1.6.

We can get rid of more ifdefs once all platforms are on OSL 1.7 soon.
This commit is contained in:
Thomas Dinges
2016-02-06 00:07:20 +01:00
parent 66a9698978
commit a6ca8a1b73
4 changed files with 0 additions and 122 deletions

View File

@@ -852,69 +852,6 @@ bool OSLRenderServices::has_userdata(ustring name, TypeDesc type, OSL::ShaderGlo
return false; /* never called by OSL */
}
#if OSL_LIBRARY_VERSION_CODE < 10600
bool OSLRenderServices::texture(ustring filename,
TextureOpt &options,
OSL::ShaderGlobals *sg,
float s, float t,
float dsdx, float dtdx,
float dsdy, float dtdy,
float *result)
{
OSL::TextureSystem *ts = osl_ts;
ShaderData *sd = (ShaderData *)(sg->renderstate);
KernelGlobals *kg = sd->osl_globals;
OSLThreadData *tdata = kg->osl_tdata;
OIIO::TextureSystem::Perthread *texture_thread_info =
tdata->oiio_thread_info;
OIIO::TextureSystem::TextureHandle *texture_handle = NULL;
if(filename[0] != '@') {
texture_handle = ts->get_texture_handle(filename, texture_thread_info);
}
return texture(filename,
texture_handle,
texture_thread_info,
options,
sg,
s, t,
dsdx, dtdx, dsdy, dtdy,
options.nchannels,
result,
NULL, NULL);
}
bool OSLRenderServices::texture3d(ustring filename,
TextureOpt &options,
OSL::ShaderGlobals *sg,
const OSL::Vec3 &P,
const OSL::Vec3 &dPdx,
const OSL::Vec3 &dPdy,
const OSL::Vec3 &dPdz,
float *result)
{
OSL::TextureSystem *ts = osl_ts;
ShaderData *sd = (ShaderData *)(sg->renderstate);
KernelGlobals *kg = sd->osl_globals;
OSLThreadData *tdata = kg->osl_tdata;
OIIO::TextureSystem::Perthread *texture_thread_info =
tdata->oiio_thread_info;
OIIO::TextureSystem::TextureHandle *texture_handle = NULL;
if(filename[0] != '@') {
texture_handle = ts->get_texture_handle(filename, texture_thread_info);
}
return texture3d(filename,
texture_handle,
texture_thread_info,
options,
sg,
P,
dPdx, dPdy, dPdz,
options.nchannels,
result,
NULL, NULL, NULL);
}
#endif /* OSL_LIBRARY_VERSION_CODE < 10600 */
bool OSLRenderServices::texture(ustring filename,
TextureHandle *texture_handle,
TexturePerthread *texture_thread_info,