mirror of
				https://github.com/ocornut/imgui.git
				synced 2025-10-26 12:27:30 +00:00 
			
		
		
		
	Backends: Added more implicit asserts to detect invalid/redundant calls to Shutdown functions. (#4562)
This commit is contained in:
		| @@ -335,8 +335,9 @@ bool ImGui_ImplAllegro5_Init(ALLEGRO_DISPLAY* display) | ||||
|  | ||||
| void ImGui_ImplAllegro5_Shutdown() | ||||
| { | ||||
|     ImGuiIO& io = ImGui::GetIO(); | ||||
|     ImGui_ImplAllegro5_Data* bd = ImGui_ImplAllegro5_GetBackendData(); | ||||
|     IM_ASSERT(bd != NULL && "No platform backend to shutdown, or already shutdown?"); | ||||
|     ImGuiIO& io = ImGui::GetIO(); | ||||
|  | ||||
|     ImGui_ImplAllegro5_InvalidateDeviceObjects(); | ||||
|     if (bd->VertexDecl) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 ocornut
					ocornut