imgui allocs in plugin
This commit is contained in:
		| @@ -35,8 +35,13 @@ SOLANA_PLUGIN_EXPORT uint32_t solana_plugin_start(struct SolanaAPI* solana_api) | ||||
| 		auto* crdtns = PLUG_RESOLVE_INSTANCE(CRDTNotesSync); | ||||
| 		auto* cr = PLUG_RESOLVE_INSTANCE_VERSIONED(Contact3Registry, "1"); | ||||
| 		auto* imguic = PLUG_RESOLVE_INSTANCE_VERSIONED(ImGuiContext, ImGui::GetVersion()); | ||||
| 		auto* imguimemaf = PLUG_RESOLVE_INSTANCE_VERSIONED(ImGuiMemAllocFunc, ImGui::GetVersion()); | ||||
| 		auto* imguimemff = PLUG_RESOLVE_INSTANCE_VERSIONED(ImGuiMemFreeFunc, ImGui::GetVersion()); | ||||
| 		// meh | ||||
| 		auto* imguimemud = plug_resolveInstanceOptional<void*>(solana_api, "ImGuiMemUserData", ImGui::GetVersion()); | ||||
|  | ||||
| 		ImGui::SetCurrentContext(imguic); | ||||
| 		ImGui::SetAllocatorFunctions(imguimemaf, imguimemff, imguimemud); | ||||
|  | ||||
| 		// static store, could be anywhere tho | ||||
| 		// construct with fetched dependencies | ||||
|   | ||||
		Reference in New Issue
	
	Block a user