-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Imgui Crash #5293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
See #1586. |
Also same issue as #5249 |
I'm just submitting questions and solutions, is there anything about cheating in my question? |
Thank You. |
DLL injection is commonly used for cheating and is a very unsupported configuration where million things can go wrong, 999999 of them have nothing to do with Dear ImGui. |
ocornut
added a commit
that referenced
this issue
May 13, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: