Premultiply alpha when loading images

This commit is contained in:
Guillaume Meunier
2025-08-03 10:50:22 +02:00
parent a144f88f95
commit 51b1b3efeb
2 changed files with 37 additions and 3 deletions
-3
View File
@@ -404,15 +404,12 @@ void scenes::lobby::gui_connected()
{
ImTextureID texture = [&]() -> ImTextureID {
if (app.image.empty())
{
return default_icon;
}
else
{
auto it = app_icons.find(app.id);
if (it == app_icons.end())
{
// TODO premultiply alpha
// TODO load textures in background
it = app_icons.emplace(app.id, imgui_ctx->load_texture(app.image)).first;
}