Inconsistent blending behaviour between Windows and HTML5
Opened this issue · 0 comments
Describe the bug
Hi I'm getting some inconsistent behaviour for the blending for the Windows build target and the debug electron build.
I've created a repro of the bug:
https://github.com/distantforest1/Shader-G2-blendingbug
To Reproduce
Open this up in VS Code:
https://github.com/distantforest1/Shader-G2-blendingbug
- Press F5 to run the debug, it is blending properly
- Build with Ctrl-Shift-B on Windows (Full Build opengl/directX). It is not blending as expected.
** Additional context: **
It appears that in the windows build, if you change the blending mode, you need to recompile the pipeline?
https://github.com/distantforest1/Shader-G2-blendingbug/blob/a96a9d9b1e014c0f84fe2b8a1f0fc4461adb4664/Sources/Main.hx#L74
Expected behavior
Not needing to recompile the pipeline for blend mode changes, or requiring a compile for the electron build (for consistency).
Execution Environment:
Operating system: Windows 10 Home. Windows-10-10.0.19045-SP0 64 Bits.
Graphics card: NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 560.94
- IDE used (if any): Visual Studio Code
- Kha revision: Latest
- Kha build output (Using Kha...):
- Application output (if it runs):

