Bug 496869

Summary: Broken "Normal" blend mode in layer styles of 16-bit integer image
Product: [Applications] krita Reporter: varkatope <chirney1>
Component: layer stylesAssignee: Krita Bugs <krita-bugs-null>
Status: REPORTED ---    
Severity: normal CC: halla
Priority: NOR    
Version First Reported In: nightly build (please specify the git hash!)   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: image illustrating the problem

Description varkatope 2024-11-30 16:06:00 UTC
Created attachment 176245 [details]
image illustrating the problem

Git hash: 74d5360

(worked OK in at least 292fd73, possibly newer nightlies as well but haven't tried those)

STEPS TO REPRODUCE
1. Create a new project in 16-bit integer color depth.
2. Make a dark background then create a white shape on a new layer (raster or vector)
3. Apply a gradient overlay layer style to the shape with a "Normal" blend mode and a white to black foreground to background gradient.

OBSERVED RESULT
It should look pretty obviously messed up. Other blend modes like multiply seem to work OK.

See attached test image. The two left shapes use Normal blend mode and the rightmost shape is just a vector gradient and unaffected.

SOFTWARE/OS VERSIONS
Krita

 Version: 5.3.0-prealpha (git 74d5360)
 Hidpi: false

Qt

  Version (compiled): 5.15.7
  Version (loaded): 5.15.7

OS Information

  Build ABI: x86_64-little_endian-lp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: linux
  Kernel Version: 6.12.1-4-MANJARO
  Pretty Productname: Manjaro Linux
  Product Type: manjaro
  Product Version: rolling
  Desktop: XFCE
  Appimage build: Yes
Comment 1 varkatope 2024-12-11 04:01:50 UTC
This seems to have been fixed since the nightly made from git hash 79c8401 . Cheers!