Skip to content

Commit 564f95c

Browse files
authored
BackgroundBlurEffect: Fix crash (#2554)
1 parent d11be69 commit 564f95c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/BackgroundBlurEffect.vala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,10 @@ public class Gala.BackgroundBlurEffect : Clutter.Effect {
224224
}
225225

226226
private bool update_actor_fbo (int width, int height, float downscale_factor) {
227+
if (width <= 0 || height <= 0) {
228+
return false;
229+
}
230+
227231
if (
228232
texture_width == width &&
229233
texture_height == height &&

0 commit comments

Comments
 (0)