mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
LibGL: Fix incorrect blend factor setup
This commit is contained in:
parent
b38edf994b
commit
3dd9efd35f
Notes:
sideshowbarker
2024-07-18 05:30:41 +09:00
Author: https://github.com/sunverwerth Commit: https://github.com/SerenityOS/serenity/commit/3dd9efd35f8 Pull-request: https://github.com/SerenityOS/serenity/pull/9451 Reviewed-by: https://github.com/Quaker762 ✅ Reviewed-by: https://github.com/alimpfard
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue