You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If ImGui::DragScalar is provided only one of min/max values and ImGuiSliderFlags_AlwaysClamp is set, the program will segfault when input an out-of-bound value.
This is due to the bug in ImGui::TempInputScalar function where it attempts to invoke DataTypeCompare even if only one of min/max value is provided.
But for DataTypeCompare, both min/max values must be provided.
Version/Branch of Dear ImGui:
My Issue/Question:
If
ImGui::DragScalar
is provided only one of min/max values andImGuiSliderFlags_AlwaysClamp
is set, the program will segfault when input an out-of-bound value.This is due to the bug in
ImGui::TempInputScalar
function where it attempts to invokeDataTypeCompare
even if only one of min/max value is provided.But for
DataTypeCompare
, both min/max values must be provided.Related commit: 36af398
My current fix is
Hope it helps.
The text was updated successfully, but these errors were encountered: