diff options
| -rw-r--r-- | src/video_core/engines/fermi_2d.cpp | 12 | ||||
| -rw-r--r-- | src/video_core/engines/fermi_2d.h | 4 |
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() { | |||
| 87 | const Common::Rectangle<u32> src_rect{src_blit_x1, src_blit_y1, src_blit_x2, src_blit_y2}; | 87 | const Common::Rectangle<u32> src_rect{src_blit_x1, src_blit_y1, src_blit_x2, src_blit_y2}; |
| 88 | const Common::Rectangle<u32> dst_rect{regs.blit_dst_x, regs.blit_dst_y, dst_blit_x2, | 88 | const Common::Rectangle<u32> dst_rect{regs.blit_dst_x, regs.blit_dst_y, dst_blit_x2, |
| 89 | dst_blit_y2}; | 89 | dst_blit_y2}; |
| 90 | Config copy_config; | 90 | const Config copy_config{ |
| 91 | copy_config.operation = regs.operation; | 91 | .operation = regs.operation, |
| 92 | copy_config.filter = regs.blit_control.filter; | 92 | .filter = regs.blit_control.filter, |
| 93 | copy_config.src_rect = src_rect; | 93 | .src_rect = src_rect, |
| 94 | copy_config.dst_rect = dst_rect; | 94 | .dst_rect = dst_rect, |
| 95 | 95 | }; | |
| 96 | if (!rasterizer->AccelerateSurfaceCopy(regs.src, regs.dst, copy_config)) { | 96 | if (!rasterizer->AccelerateSurfaceCopy(regs.src, regs.dst, copy_config)) { |
| 97 | UNIMPLEMENTED(); | 97 | UNIMPLEMENTED(); |
| 98 | } | 98 | } |
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: | |||
| 145 | } regs{}; | 145 | } regs{}; |
| 146 | 146 | ||
| 147 | struct Config { | 147 | struct Config { |
| 148 | Operation operation; | 148 | Operation operation{}; |
| 149 | Filter filter; | 149 | Filter filter{}; |
| 150 | Common::Rectangle<u32> src_rect; | 150 | Common::Rectangle<u32> src_rect; |
| 151 | Common::Rectangle<u32> dst_rect; | 151 | Common::Rectangle<u32> dst_rect; |
| 152 | }; | 152 | }; |