-
-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Closed
Description
int ImDrawList::_CalcCircleAutoSegmentCount(float radius) const
{
// Automatic segment count
const int radius_idx = (int)(radius + 0.999999f); // ceil to never reduce accuracy
if (radius_idx < IM_ARRAYSIZE(_Data->CircleSegmentCounts))
return _Data->CircleSegmentCounts[radius_idx]; // Crash Here
else
return IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC(radius, _Data->CircleSegmentMaxError);
}
I Use Inject ImguiDx11 Dll , When I draw the rect, and I use rounding, crash in some cases, and when I debug the code, it crashes here. return _Data->CircleSegmentCounts[radius_idx];
I don't know why。
return radius * 2;
I use like this, no crash
Metadata
Metadata
Assignees
Labels
No labels