From a160b2c850b02b27c1f00a7aaf12020ae4855642 Mon Sep 17 00:00:00 2001 From: Erik Reider <35975961+ErikReider@users.noreply.github.com> Date: Thu, 18 May 2023 15:47:14 +0200 Subject: [PATCH] Flipped the order of which the stencil add function is called (#157) --- sway/desktop/fx_renderer/fx_renderer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/desktop/fx_renderer/fx_renderer.c b/sway/desktop/fx_renderer/fx_renderer.c index 46668d73..7122983e 100644 --- a/sway/desktop/fx_renderer/fx_renderer.c +++ b/sway/desktop/fx_renderer/fx_renderer.c @@ -411,8 +411,8 @@ void fx_renderer_begin(struct fx_renderer *renderer, int width, int height) { fx_framebuffer_update(&renderer->effects_buffer_swapped, width, height); // Add a stencil buffer to the main buffer & bind the main buffer - fx_framebuffer_add_stencil_buffer(&renderer->main_buffer, width, height); fx_framebuffer_bind(&renderer->main_buffer); + fx_framebuffer_add_stencil_buffer(&renderer->main_buffer, width, height); // refresh projection matrix matrix_projection(renderer->projection, width, height,