X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-core.git;a=blobdiff_plain;f=dali%2Fpublic-api%2Frendering%2Ftexture-set.cpp;h=cc48b113b447515c9739a668591a0645eaebbbbf;hp=261e597e9c87366c08f4497a2405d1f598b80574;hb=646f736e77b085c86e982c0d1d4b895c2a431330;hpb=b41db98148be41ef5928f4335e985bf62252dde7 diff --git a/dali/public-api/rendering/texture-set.cpp b/dali/public-api/rendering/texture-set.cpp index 261e597..cc48b11 100644 --- a/dali/public-api/rendering/texture-set.cpp +++ b/dali/public-api/rendering/texture-set.cpp @@ -61,17 +61,17 @@ void TextureSet::SetTexture( size_t index, Texture texture ) if( texture ) { Internal::TexturePtr texturePtr( &GetImplementation( texture ) ); - GetImplementation(*this).SetTexture( index, texturePtr ); + GetImplementation(*this).SetTexture( static_cast( index ), texturePtr ); // only support 4,294,967,295 textures } else { - GetImplementation(*this).SetTexture( index, NULL ); + GetImplementation(*this).SetTexture( static_cast( index ), NULL ); // only support 4,294,967,295 textures } } Texture TextureSet::GetTexture( size_t index ) const { - Internal::Texture* texturePtr = GetImplementation(*this).GetTexture( index ); + Internal::Texture* texturePtr = GetImplementation(*this).GetTexture( static_cast( index ) ); // only support 4,294,967,295 textures return Dali::Texture( texturePtr ); } @@ -80,17 +80,17 @@ void TextureSet::SetSampler( size_t index, Sampler sampler ) if( sampler ) { Internal::SamplerPtr samplerPtr( &GetImplementation( sampler ) ); - GetImplementation(*this).SetSampler( index, samplerPtr ); + GetImplementation(*this).SetSampler( static_cast( index ), samplerPtr ); // only support 4,294,967,295 samplers } else { - GetImplementation(*this).SetSampler( index, NULL ); + GetImplementation(*this).SetSampler( static_cast( index ), NULL ); // only support 4,294,967,295 samplers } } Sampler TextureSet::GetSampler( size_t index ) const { - Internal::Sampler* samplerPtr = GetImplementation(*this).GetSampler( index ); + Internal::Sampler* samplerPtr = GetImplementation(*this).GetSampler( static_cast( index ) ); // only support 4,294,967,295 samplers return Dali::Sampler( samplerPtr ); }