From 815146e7d8e7a4bc862f6309484bc3cd046a2318 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Thu, 17 Jun 2021 20:03:18 +1000 Subject: [PATCH] GPU/HW: Fix incorrect blend factor Regression from 75e6c175de7efc602e486091d90ddef26d357e6d --- dep/msvc/qt | 2 +- src/core/gpu_hw.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dep/msvc/qt b/dep/msvc/qt index 533999c3f..4d453164d 160000 --- a/dep/msvc/qt +++ b/dep/msvc/qt @@ -1 +1 @@ -Subproject commit 533999c3f034746098016f757c106b5376ff7510 +Subproject commit 4d453164dfd7b0793653e59ba70ed64a2f5ca2a4 diff --git a/src/core/gpu_hw.cpp b/src/core/gpu_hw.cpp index 2766eabb5..c62d42c38 100644 --- a/src/core/gpu_hw.cpp +++ b/src/core/gpu_hw.cpp @@ -1285,8 +1285,8 @@ void GPU_HW::DispatchRenderCommand() const float dst_alpha_factor = transparent_alpha[static_cast(transparency_mode)][1]; m_batch_ubo_dirty |= (m_batch_ubo_data.u_src_alpha_factor != src_alpha_factor || m_batch_ubo_data.u_dst_alpha_factor != dst_alpha_factor); - m_batch_ubo_data.u_dst_alpha_factor = src_alpha_factor; - m_batch_ubo_data.u_src_alpha_factor = dst_alpha_factor; + m_batch_ubo_data.u_src_alpha_factor = src_alpha_factor; + m_batch_ubo_data.u_dst_alpha_factor = dst_alpha_factor; } const bool check_mask_before_draw = m_GPUSTAT.check_mask_before_draw;