Revert "[Tizen] Add log to prevent invalid access to array"
authorShinwoo Kim <cinoo.kim@samsung.com>
Wed, 17 Nov 2021 01:52:22 +0000 (10:52 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Wed, 17 Nov 2021 01:52:22 +0000 (10:52 +0900)
This reverts commit db2a3ac485aa5f81238d2acfa0cabe0929c8d36c.

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

index f020e5b..de5e058 100644 (file)
@@ -29,7 +29,6 @@
 #include "gles-graphics-render-target.h"
 
 #include <map>
-#include <assert.h>
 
 namespace Dali::Graphics::GLES
 {
@@ -865,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);
-    assert(0);
-  }
-
   if(mImpl->mGlStateCache.mBoundTextureId[mImpl->mGlStateCache.mActiveTextureUnit][typeId] != textureId)
   {
     mImpl->mGlStateCache.mBoundTextureId[mImpl->mGlStateCache.mActiveTextureUnit][typeId] = textureId;