libretro / RetroArch

Cross-platform, sophisticated frontend for the libretro API. Licensed GPLv3.
http://www.libretro.com
GNU General Public License v3.0
10.41k stars 1.84k forks source link

GLUI menu driver doesn't support alpha channel images #17229

Open zach-morris opened 1 day ago

zach-morris commented 1 day ago

First and foremost consider this:

When developing the PR https://github.com/libretro/RetroArch/pull/17216, it was noticed when testing the glui menu driver does not support alpha channel images. See here.

Capture4

Expected behavior

glui menu driver supports alpha channel images

Actual behavior

glui menu driver does not support alpha channel images

Steps to reproduce the bug

  1. Place alpha channel image in place of a Boxart or Snapshot or Title image
  2. Change to the glui driver
  3. Note it shows black background instead of alpha channel

Bisect Results

I think it's always happened, but never noticed with Boxart, Snapshot or Titles. If logos are introduced as the PR suggests, it will be noticeable.

Version/Commit

You can find this information under Information/System Information

Environment information

i30817 commented 12 hours ago

You're lucky you see it as black, in certain Linux systems it's shown in the classic gray-white checkerboard pattern.

It sometimes happens in some cover images which were improperly prepared.

Glui, not sure if only by default, also does show a placeholder for a missing image in that part of the gui if any is missing, instead of showing the bare background. I got used to it, and I suppose both things are to minimize laying out reflow problems and performance for limited systems, like frankly a large minority of the people that use RetroArch instead of cemu, yuzu or that PS3 emulator.