+ size_t textureCount = mTextureSet->GetTextureCount();
+ size_t newTextureCount = mTextureSet->GetNewTextureCount();
+
+ Program* program = mShader->GetProgram();
+ if( program && program->GetActiveSamplerCount() != textureCount + newTextureCount )
+ {
+ DALI_LOG_ERROR("The number of active samplers in the shader(%lu) does not match the number of textures in the TextureSet(%lu)\n",
+ program->GetActiveSamplerCount(),
+ textureCount + newTextureCount );
+ }
+