mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-03 22:51:06 +01:00 
			
		
		
		
	Examples: Cast to ImTextureID instead of void* when assigning to TexId. Applied to all examples. (#2015)
This commit is contained in:
		@@ -182,7 +182,7 @@ bool ImGui_ImplOpenGL2_CreateFontsTexture()
 | 
			
		||||
    glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
 | 
			
		||||
 | 
			
		||||
    // Store our identifier
 | 
			
		||||
    io.Fonts->TexID = (void *)(intptr_t)g_FontTexture;
 | 
			
		||||
    io.Fonts->TexID = (ImTextureID)(intptr_t)g_FontTexture;
 | 
			
		||||
 | 
			
		||||
    // Restore state
 | 
			
		||||
    glBindTexture(GL_TEXTURE_2D, last_texture);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user