Change-Id: Ibd690b68015869f485b3458dc80b81486d3eca8e
Signed-off-by: seungho baek <sbsh.baek@samsung.com>
// elements. This avoids having to sort the bindings.
for(const auto& binding : mImpl->mCurrentTextureBindings)
{
+ if(currentSampler >= samplers.size())
+ {
+ // Don't bind more textures than there are active samplers.
+ break;
+ }
+
auto texture = const_cast<GLES::Texture*>(static_cast<const GLES::Texture*>(binding.texture));
// Texture may not have been initialized yet...(tbm_surface timing issue?)
++currentSampler;
currentElement = 0;
}
- if(currentSampler >= samplers.size())
- {
- // Don't bind more textures than there are active samplers.
- break;
- }
}
// for each attribute bind vertices