diff options
author | FernandoS27 <fsahmkow27@gmail.com> | 2018-10-12 01:11:47 +0200 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2018-10-13 21:25:18 +0200 |
commit | e0ca938b222584cdbf9e03460171c03484882bd4 (patch) | |
tree | 508abef3fcef21a6fecc6c783bf7da1d93b198f0 /src/yuzu/debugger/graphics/graphics_surface.cpp | |
parent | Remove old Swizzle algorithms and use 3d Swizzle (diff) | |
download | yuzu-e0ca938b222584cdbf9e03460171c03484882bd4.tar yuzu-e0ca938b222584cdbf9e03460171c03484882bd4.tar.gz yuzu-e0ca938b222584cdbf9e03460171c03484882bd4.tar.bz2 yuzu-e0ca938b222584cdbf9e03460171c03484882bd4.tar.lz yuzu-e0ca938b222584cdbf9e03460171c03484882bd4.tar.xz yuzu-e0ca938b222584cdbf9e03460171c03484882bd4.tar.zst yuzu-e0ca938b222584cdbf9e03460171c03484882bd4.zip |
Diffstat (limited to '')
-rw-r--r-- | src/yuzu/debugger/graphics/graphics_surface.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/yuzu/debugger/graphics/graphics_surface.cpp b/src/yuzu/debugger/graphics/graphics_surface.cpp index cbcd5dd5f..44d423da2 100644 --- a/src/yuzu/debugger/graphics/graphics_surface.cpp +++ b/src/yuzu/debugger/graphics/graphics_surface.cpp @@ -386,8 +386,9 @@ void GraphicsSurfaceWidget::OnUpdate() { // TODO(bunnei): Will not work with BCn formats that swizzle 4x4 tiles. // Needs to be fixed if we plan to use this feature more, otherwise we may remove it. - auto unswizzled_data = Tegra::Texture::UnswizzleTexture( - *address, 1, Tegra::Texture::BytesPerPixel(surface_format), surface_width, surface_height); + auto unswizzled_data = + Tegra::Texture::UnswizzleTexture(*address, 1, Tegra::Texture::BytesPerPixel(surface_format), + surface_width, surface_height, 1U); auto texture_data = Tegra::Texture::DecodeTexture(unswizzled_data, surface_format, surface_width, surface_height); |