Revert "[Tizen] Use std::abort instead of assert"
authorShinwoo Kim <cinoo.kim@samsung.com>
Wed, 17 Nov 2021 01:52:02 +0000 (10:52 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Wed, 17 Nov 2021 01:52:02 +0000 (10:52 +0900)
This reverts commit 607404e8bdd324e5a832c7fc58b0adbc5e992613.

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

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