|
@@ -402,10 +402,9 @@ void ImDrawListSharedData::SetCircleTessellationMaxError(float max_error)
|
|
|
void ImDrawList::_ResetForNewFrame()
|
|
|
{
|
|
|
// Verify that the ImDrawCmd fields we want to memcmp() are contiguous in memory.
|
|
|
- // (those should be IM_STATIC_ASSERT() in theory but with our pre C++11 setup the whole check doesn't compile with GCC)
|
|
|
- IM_ASSERT(IM_OFFSETOF(ImDrawCmd, ClipRect) == 0);
|
|
|
- IM_ASSERT(IM_OFFSETOF(ImDrawCmd, TextureId) == sizeof(ImVec4));
|
|
|
- IM_ASSERT(IM_OFFSETOF(ImDrawCmd, VtxOffset) == sizeof(ImVec4) + sizeof(ImTextureID));
|
|
|
+ IM_STATIC_ASSERT(IM_OFFSETOF(ImDrawCmd, ClipRect) == 0);
|
|
|
+ IM_STATIC_ASSERT(IM_OFFSETOF(ImDrawCmd, TextureId) == sizeof(ImVec4));
|
|
|
+ IM_STATIC_ASSERT(IM_OFFSETOF(ImDrawCmd, VtxOffset) == sizeof(ImVec4) + sizeof(ImTextureID));
|
|
|
|
|
|
CmdBuffer.resize(0);
|
|
|
IdxBuffer.resize(0);
|