diff options
| author | 2020-07-21 12:44:32 +1000 | |
|---|---|---|
| committer | 2020-07-21 12:44:32 +1000 | |
| commit | dd4a02d15cd0f617d2788e1e80c9ca3733256f2d (patch) | |
| tree | 961aa6fede3614db22e6c5dfe11f328abfb92b2e /src/video_core | |
| parent | Merge pull request #4168 from ReinUsesLisp/global-memory (diff) | |
| download | yuzu-dd4a02d15cd0f617d2788e1e80c9ca3733256f2d.tar.gz yuzu-dd4a02d15cd0f617d2788e1e80c9ca3733256f2d.tar.xz yuzu-dd4a02d15cd0f617d2788e1e80c9ca3733256f2d.zip | |
video_core: Remove redundant pixel format type
We already get the format type before converting shadow formats and during shadow formats.
Diffstat (limited to 'src/video_core')
| -rw-r--r-- | src/video_core/texture_cache/surface_params.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/video_core/texture_cache/surface_params.cpp b/src/video_core/texture_cache/surface_params.cpp index 921562c1f..0ecf42368 100644 --- a/src/video_core/texture_cache/surface_params.cpp +++ b/src/video_core/texture_cache/surface_params.cpp | |||
| @@ -96,7 +96,6 @@ SurfaceParams SurfaceParams::CreateForTexture(const FormatLookupTable& lookup_ta | |||
| 96 | } | 96 | } |
| 97 | params.type = GetFormatType(params.pixel_format); | 97 | params.type = GetFormatType(params.pixel_format); |
| 98 | } | 98 | } |
| 99 | params.type = GetFormatType(params.pixel_format); | ||
| 100 | // TODO: on 1DBuffer we should use the tic info. | 99 | // TODO: on 1DBuffer we should use the tic info. |
| 101 | if (tic.IsBuffer()) { | 100 | if (tic.IsBuffer()) { |
| 102 | params.target = SurfaceTarget::TextureBuffer; | 101 | params.target = SurfaceTarget::TextureBuffer; |