Pre-multipled sRGB values need to be un-multiplied before conversion to linear and then re-multiplied after. Compare shaders/texture.frag. This fixes an issue in labwc where titlebar corners (rendered as ARGB textures) did not match the rest of the titlebar (rendered as a solid wlr_scene_rect). Note: 0.17 has other instances in render/vulkan/renderer.c that need the same fix.master
parent
73d2fd4d4f
commit
b1b34cd665
Loading…
Reference in new issue