diff options
| author | Connor McLaughlin <stenzek@gmail.com> | 2019-04-22 12:50:22 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-22 12:50:22 +1000 |
| commit | 59c0e51f5b84874dca2cbecfe750e3f1de66405d (patch) | |
| tree | 5a155558fc1b75fa629783c3a4a1e465858f221f /Source/Core/VideoBackends/Software/TextureEncoder.cpp | |
| parent | 93be178f28a55ea1bb3fa796b32eecae482a53d1 (diff) | |
| parent | 356ebdf5098a24a70c04392ef7bcad7b762affbe (diff) | |
Merge pull request #8000 from stenzek/more-videocommon-cleanup
Additional cleanup/fixes from VideoCommon merge
Diffstat (limited to 'Source/Core/VideoBackends/Software/TextureEncoder.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Software/TextureEncoder.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/VideoBackends/Software/TextureEncoder.cpp b/Source/Core/VideoBackends/Software/TextureEncoder.cpp index 07eba31530..d3e76aa997 100644 --- a/Source/Core/VideoBackends/Software/TextureEncoder.cpp +++ b/Source/Core/VideoBackends/Software/TextureEncoder.cpp @@ -1422,7 +1422,7 @@ static void EncodeZ24halfscale(u8* dst, const u8* src, EFBCopyFormat format) namespace { void EncodeEfbCopy(u8* dst, const EFBCopyParams& params, u32 native_width, u32 bytes_per_row, - u32 num_blocks_y, u32 memory_stride, const EFBRectangle& src_rect, + u32 num_blocks_y, u32 memory_stride, const MathUtil::Rectangle<int>& src_rect, bool scale_by_half) { const u8* src = EfbInterface::GetPixelPointer(src_rect.left, src_rect.top, params.depth); @@ -1471,8 +1471,9 @@ void EncodeEfbCopy(u8* dst, const EFBCopyParams& params, u32 native_width, u32 b } void Encode(AbstractStagingTexture* dst, const EFBCopyParams& params, u32 native_width, - u32 bytes_per_row, u32 num_blocks_y, u32 memory_stride, const EFBRectangle& src_rect, - bool scale_by_half, float y_scale, float gamma) + u32 bytes_per_row, u32 num_blocks_y, u32 memory_stride, + const MathUtil::Rectangle<int>& src_rect, bool scale_by_half, float y_scale, + float gamma) { // HACK: Override the memory stride for this staging texture with new copy stride. // This is required because the texture encoder assumes that we're writing directly to memory, |
