Revert "make sure it's not modifying memory"

This reverts commit bc006dbf08.
This commit is contained in:
Jupeyy 2023-06-03 22:04:28 +02:00
parent 9be2a78356
commit 44039c2b39

View file

@ -132,9 +132,7 @@ public:
struct STextString
{
int m_QuadBufferObjectIndex;
uint32_t m_DbgShadowBytes = 0x12345678;
int m_QuadBufferContainerIndex;
uint32_t m_DbgShadowBytes2 = 0x87654321;
size_t m_QuadNum;
int m_SelectionQuadContainerIndex;
@ -1993,7 +1991,6 @@ public:
dbg_msg("textrender", "The text container index was in use by %d ", (int)pTextContainer->m_ContainerIndex.m_UseCount.use_count());
HasNonEmptyTextContainer = true; // NOLINT(clang-analyzer-deadcode.DeadStores)
}
dbg_assert(pTextContainer->m_StringInfo.m_DbgShadowBytes == STextString{}.m_DbgShadowBytes && pTextContainer->m_StringInfo.m_DbgShadowBytes2 == STextString{}.m_DbgShadowBytes2, "shadow bytes were modified in text container.");
}
dbg_assert(!HasNonEmptyTextContainer, "text container was not empty");