From 3dd9efd35f87866a107e49d74bd7af50ed92f0ce Mon Sep 17 00:00:00 2001 From: Stephan Unverwerth Date: Mon, 16 Aug 2021 15:25:18 +0200 Subject: [PATCH] LibGL: Fix incorrect blend factor setup --- Userland/Libraries/LibGL/SoftwareRasterizer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibGL/SoftwareRasterizer.cpp b/Userland/Libraries/LibGL/SoftwareRasterizer.cpp index e505ece5a3..b1a47ae1e5 100644 --- a/Userland/Libraries/LibGL/SoftwareRasterizer.cpp +++ b/Userland/Libraries/LibGL/SoftwareRasterizer.cpp @@ -77,7 +77,7 @@ static constexpr void setup_blend_factors(GLenum mode, FloatVector4& constant, f src_alpha = -1; break; case GL_DST_ALPHA: - dst_alpha = -1; + dst_alpha = 1; break; case GL_ONE_MINUS_DST_ALPHA: constant = { 1.0f, 1.0f, 1.0f, 1.0f }; @@ -139,7 +139,7 @@ static void rasterize_triangle(const RasterizerOptions& options, Gfx::Bitmap& re src_factor_dst_color); setup_blend_factors( - options.blend_source_factor, + options.blend_destination_factor, dst_constant, dst_factor_src_alpha, dst_factor_dst_alpha,