mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 22:05:12 +00:00
Vk/Gl/Overlays: Do not blend the alpha channel when rendering overlays
When blending a source pixel with alpha less than 1 onto a texture, we will end up having even less alpha than before. This can lead to ugly "holes" in the overlays, especially on the edges of glyphs with smooth fonts for example. We can fix this by only blending the RGB values while keeping the destination's alpha value. I haven't really seen this happen in RPCS3, but it's better to be safe than sorry.
This commit is contained in:
parent
d1bfa9cd9c
commit
3b36df48e9
4 changed files with 7 additions and 5 deletions
|
|
@ -7,7 +7,7 @@ namespace rsx
|
|||
namespace overlays
|
||||
{
|
||||
// This is overlay common code meant only for render backends
|
||||
enum class texture_sampling_mode: s32
|
||||
enum class texture_sampling_mode : s32
|
||||
{
|
||||
none = 0,
|
||||
font2D = 1,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue