🔀 Merge pull request #345 from Schneegans/fix/#344

This commit is contained in:
Simon Schneegans
2023-06-05 06:01:30 +02:00
committed by GitHub
2 changed files with 11 additions and 0 deletions
+1
View File
@@ -11,6 +11,7 @@ SPDX-License-Identifier: CC-BY-4.0
#### Bug Fixes
- Fixed an issue on GNOME 44.2 which caused the effects to look broken. It was caused by [this change](https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2650).
- Fixed an issue which prevented the settings of the Snap of Disintegration effect from being translatable.
## [Burn My Windows 32](https://github.com/schneegans/Burn-My-Windows/releases/tag/v32)
+10
View File
@@ -181,6 +181,16 @@ var Shader = GObject.registerClass(
// the handler. This could still be null if called from the updateAnimation() above.
vfunc_paint_target(...params) {
this.emit('update-animation', this._progress);
// Starting with GNOME 44.2, the alpha channel is not written to by default. We need
// to undo this. It is a pity that we have to do this here, as it is not really
// required to be done each frame. But it's the only place where we can do it.
// https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2650
if (utils.shellVersionIsAtLeast(44, 2)) {
this.get_pipeline().set_blend(
'RGBA = ADD (SRC_COLOR * (SRC_COLOR[A]), DST_COLOR * (1-SRC_COLOR[A]))');
}
this.set_uniform_float(this._uProgress, 1, [this._progress]);
super.vfunc_paint_target(...params);
}