[Tizen] Use std::abort instead of assert 33/266233/1
authorHeeyong Song <heeyong.song@samsung.com>
Tue, 9 Nov 2021 09:13:36 +0000 (18:13 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Tue, 9 Nov 2021 09:13:36 +0000 (18:13 +0900)
Change-Id: I9de2ba3e3585e8859e1524dc99308b0aa30801eb

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

index f020e5b..9c21096 100644 (file)
@@ -29,7 +29,6 @@
 #include "gles-graphics-render-target.h"
 
 #include <map>
-#include <assert.h>
 
 namespace Dali::Graphics::GLES
 {
@@ -868,7 +867,7 @@ void Context::BindTexture(GLenum target, BoundTextureType textureTypeId, uint32_
   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);
+    std::abort();
   }
 
   if(mImpl->mGlStateCache.mBoundTextureId[mImpl->mGlStateCache.mActiveTextureUnit][typeId] != textureId)