ImGui.NET icon indicating copy to clipboard operation
ImGui.NET copied to clipboard

Can't pass a null reference in BeginPopupModal

Open NogginBops opened this issue 4 years ago • 1 comments

I've found a problem where I want to call BeginPopupModal like this:

ImGui::BeginPopupModal(label, nullptr, flags)

which is possible by doing ref Unsafe.AsRef<bool>(null) in an unsafe context but the marshalling done in this library dereferences that reference which causes a NullRefernceException.

NogginBops avatar Nov 19 '20 03:11 NogginBops

Would love to see a fix for this as I am running into this now. Can't really see a way around it

Critical-Impact avatar Sep 14 '21 11:09 Critical-Impact