mirror of
				https://github.com/ocornut/imgui.git
				synced 2025-10-26 12:27:30 +00:00 
			
		
		
		
	Merge remote-tracking branch 'origin/master' into docking
# Conflicts: # backends/imgui_impl_dx12.cpp # backends/imgui_impl_dx9.cpp # imgui.cpp # imgui.h
This commit is contained in:
		| @@ -481,7 +481,7 @@ bool ImGui_ImplOpenGL3_CreateFontsTexture() | ||||
|     glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels); | ||||
|  | ||||
|     // Store our identifier | ||||
|     io.Fonts->TexID = (ImTextureID)(intptr_t)g_FontTexture; | ||||
|     io.Fonts->SetTexID((ImTextureID)(intptr_t)g_FontTexture); | ||||
|  | ||||
|     // Restore state | ||||
|     glBindTexture(GL_TEXTURE_2D, last_texture); | ||||
| @@ -495,7 +495,7 @@ void ImGui_ImplOpenGL3_DestroyFontsTexture() | ||||
|     { | ||||
|         ImGuiIO& io = ImGui::GetIO(); | ||||
|         glDeleteTextures(1, &g_FontTexture); | ||||
|         io.Fonts->TexID = 0; | ||||
|         io.Fonts->SetTexID(0); | ||||
|         g_FontTexture = 0; | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 ocornut
					ocornut