From ba60e8688233dcab9f30067080ec38d2e0d2293c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Madar=C3=A1sz?= Date: Thu, 18 Apr 2024 09:13:11 +0200 Subject: [PATCH] fix: fx stack fix blendFunc state --- engine/joint/v4k.h | 2 +- engine/split/v4k_render.c | 2 +- engine/v4k.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/joint/v4k.h b/engine/joint/v4k.h index 9c5c716..792293a 100644 --- a/engine/joint/v4k.h +++ b/engine/joint/v4k.h @@ -385286,7 +385286,7 @@ bool postfx_end(postfx *fx) { postfx_rs.depth_test_enabled = 0; postfx_rs.cull_face_enabled = 0; postfx_rs.blend_enabled = 1; - postfx_rs.blend_src = GL_SRC_ALPHA; + postfx_rs.blend_src = GL_ONE; postfx_rs.blend_dst = GL_ONE_MINUS_SRC_ALPHA; } diff --git a/engine/split/v4k_render.c b/engine/split/v4k_render.c index 9b6a0fb..d01f9b1 100644 --- a/engine/split/v4k_render.c +++ b/engine/split/v4k_render.c @@ -2652,7 +2652,7 @@ bool postfx_end(postfx *fx) { postfx_rs.depth_test_enabled = 0; postfx_rs.cull_face_enabled = 0; postfx_rs.blend_enabled = 1; - postfx_rs.blend_src = GL_SRC_ALPHA; + postfx_rs.blend_src = GL_ONE; postfx_rs.blend_dst = GL_ONE_MINUS_SRC_ALPHA; } diff --git a/engine/v4k.c b/engine/v4k.c index bb35a45..b39b9bd 100644 --- a/engine/v4k.c +++ b/engine/v4k.c @@ -19825,7 +19825,7 @@ bool postfx_end(postfx *fx) { postfx_rs.depth_test_enabled = 0; postfx_rs.cull_face_enabled = 0; postfx_rs.blend_enabled = 1; - postfx_rs.blend_src = GL_SRC_ALPHA; + postfx_rs.blend_src = GL_ONE; postfx_rs.blend_dst = GL_ONE_MINUS_SRC_ALPHA; }