Revert "[Tizen] Add log to prevent invalid access to array"
authortscholb <scholb.kim@samsung.com>
Mon, 1 Nov 2021 07:52:07 +0000 (16:52 +0900)
committertscholb <scholb.kim@samsung.com>
Mon, 1 Nov 2021 07:52:58 +0000 (16:52 +0900)
This reverts commit 1cd3e800e1b7ef2eda44c121115d14d830d2b521.

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

index 1d19149..13c1bad 100644 (file)
@@ -29,7 +29,6 @@
 #include "gles-graphics-render-target.h"
 
 #include <map>
-#include <assert.h>
 
 namespace Dali::Graphics::GLES
 {
@@ -861,12 +860,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;