summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-09-18 19:55:18 +0200
committerLioncash <mathew1800@gmail.com>2020-09-18 19:55:21 +0200
commit91bca9eb0b091a037a76f029c2550c854452e350 (patch)
treedf3653201ca05c9a7adcfadfe04f3c5d9bfe0afb
parentMerge pull request #4680 from Morph1984/fix-motion-mapping (diff)
downloadyuzu-91bca9eb0b091a037a76f029c2550c854452e350.tar
yuzu-91bca9eb0b091a037a76f029c2550c854452e350.tar.gz
yuzu-91bca9eb0b091a037a76f029c2550c854452e350.tar.bz2
yuzu-91bca9eb0b091a037a76f029c2550c854452e350.tar.lz
yuzu-91bca9eb0b091a037a76f029c2550c854452e350.tar.xz
yuzu-91bca9eb0b091a037a76f029c2550c854452e350.tar.zst
yuzu-91bca9eb0b091a037a76f029c2550c854452e350.zip
-rw-r--r--src/video_core/engines/fermi_2d.cpp12
-rw-r--r--src/video_core/engines/fermi_2d.h4
2 files changed, 8 insertions, 8 deletions
diff --git a/src/video_core/engines/fermi_2d.cpp b/src/video_core/engines/fermi_2d.cpp
index 6e50661a3..9409c4075 100644
--- a/src/video_core/engines/fermi_2d.cpp
+++ b/src/video_core/engines/fermi_2d.cpp
@@ -87,12 +87,12 @@ void Fermi2D::HandleSurfaceCopy() {
const Common::Rectangle<u32> src_rect{src_blit_x1, src_blit_y1, src_blit_x2, src_blit_y2};
const Common::Rectangle<u32> dst_rect{regs.blit_dst_x, regs.blit_dst_y, dst_blit_x2,
dst_blit_y2};
- Config copy_config;
- copy_config.operation = regs.operation;
- copy_config.filter = regs.blit_control.filter;
- copy_config.src_rect = src_rect;
- copy_config.dst_rect = dst_rect;
-
+ const Config copy_config{
+ .operation = regs.operation,
+ .filter = regs.blit_control.filter,
+ .src_rect = src_rect,
+ .dst_rect = dst_rect,
+ };
if (!rasterizer->AccelerateSurfaceCopy(regs.src, regs.dst, copy_config)) {
UNIMPLEMENTED();
}
diff --git a/src/video_core/engines/fermi_2d.h b/src/video_core/engines/fermi_2d.h
index 213abfaae..0909709ec 100644
--- a/src/video_core/engines/fermi_2d.h
+++ b/src/video_core/engines/fermi_2d.h
@@ -145,8 +145,8 @@ public:
} regs{};
struct Config {
- Operation operation;
- Filter filter;
+ Operation operation{};
+ Filter filter{};
Common::Rectangle<u32> src_rect;
Common::Rectangle<u32> dst_rect;
};