Make ImU8String not IDisposable

This commit is contained in:
Soreepeong 2025-08-08 21:27:40 +09:00
parent 5fee90085c
commit afe58dae76
15 changed files with 267 additions and 267 deletions

View file

@ -13,7 +13,7 @@ public static unsafe partial class ImGui
fixed (Vector3* colPtr = &col)
{
var res = ImGuiNative.ColorEdit3(labelPtr, &colPtr->X, flags) != 0;
label.Dispose();
label.Recycle();
return res;
}
}
@ -25,7 +25,7 @@ public static unsafe partial class ImGui
fixed (Vector4* colPtr = &col)
{
var res = ImGuiNative.ColorEdit4(labelPtr, &colPtr->X, flags) != 0;
label.Dispose();
label.Recycle();
return res;
}
}
@ -37,7 +37,7 @@ public static unsafe partial class ImGui
fixed (Vector3* colPtr = &col)
{
var res = ImGuiNative.ColorPicker3(labelPtr, &colPtr->X, flags) != 0;
label.Dispose();
label.Recycle();
return res;
}
}
@ -49,7 +49,7 @@ public static unsafe partial class ImGui
fixed (Vector4* colPtr = &col)
{
var res = ImGuiNative.ColorPicker4(labelPtr, &colPtr->X, flags, null) != 0;
label.Dispose();
label.Recycle();
return res;
}
}
@ -62,7 +62,7 @@ public static unsafe partial class ImGui
fixed (Vector4* refColPtr = &refCol)
{
var res = ImGuiNative.ColorPicker4(labelPtr, &colPtr->X, flags, &refColPtr->X) != 0;
label.Dispose();
label.Recycle();
return res;
}
}
@ -74,7 +74,7 @@ public static unsafe partial class ImGui
fixed (Vector4* refColPtr = &refCol)
{
var res = ImGuiNative.ColorPicker4(labelPtr, &colPtr->X, ImGuiColorEditFlags.None, &refColPtr->X) != 0;
label.Dispose();
label.Recycle();
return res;
}
}