From a553b39a6d98c08a80b7552a060a4a770e2d36af Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Fri, 24 Apr 2020 07:48:52 +0200 Subject: [PATCH] gfx-shader: Actually fix the thing 93207d was supposed to fix --- source/gfx/shader/gfx-shader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/gfx/shader/gfx-shader.cpp b/source/gfx/shader/gfx-shader.cpp index 7d06b87..dacabf6 100644 --- a/source/gfx/shader/gfx-shader.cpp +++ b/source/gfx/shader/gfx-shader.cpp @@ -482,7 +482,7 @@ void gfx::shader::shader::render() gs_reset_blend_state(); gs_enable_blending(true); - gs_blend_function_separate(GS_BLEND_SRCCOLOR, GS_BLEND_ZERO, GS_BLEND_SRCALPHA, GS_BLEND_ZERO); + gs_blend_function_separate(GS_BLEND_ONE, GS_BLEND_ZERO, GS_BLEND_ONE, GS_BLEND_ZERO); gs_enable_color(true, true, true, true); while (gs_effect_loop(_shader.get_object(), _shader_tech.c_str())) { gs_draw_sprite(nullptr, 0, width(), height());