Revert "[Tizen] Add log to prevent invalid access to array"
authorEverLEEst(SangHyeon Lee) <sh10233.lee@samsung.com>
Wed, 8 Dec 2021 05:52:12 +0000 (14:52 +0900)
committerEverLEEst(SangHyeon Lee) <sh10233.lee@samsung.com>
Wed, 8 Dec 2021 05:52:12 +0000 (14:52 +0900)
This reverts commit 095b41c9c3c50f9bd287cd348da9d3e4d860014e.

dali/internal/graphics/gles-impl/gles-context.cpp

index 9c21096..de5e058 100644 (file)
@@ -864,12 +864,6 @@ void Context::ActiveTexture(uint32_t textureBindingIndex)
 void Context::BindTexture(GLenum target, BoundTextureType textureTypeId, uint32_t textureId)
 {
   uint32_t typeId = static_cast<uint32_t>(textureTypeId);
-  if(mImpl->mGlStateCache.mActiveTextureUnit >= MAX_TEXTURE_UNITS || typeId >= MAX_TEXTURE_TARGET)
-  {
-    DALI_LOG_ERROR("Invalid index (%d, %d)\n", mImpl->mGlStateCache.mActiveTextureUnit, typeId);
-    std::abort();
-  }
-
   if(mImpl->mGlStateCache.mBoundTextureId[mImpl->mGlStateCache.mActiveTextureUnit][typeId] != textureId)
   {
     mImpl->mGlStateCache.mBoundTextureId[mImpl->mGlStateCache.mActiveTextureUnit][typeId] = textureId;