aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/texture_cache/surface_params.cpp
diff options
context:
space:
mode:
authorDavid Marcec <dmarcecguzman@gmail.com>2020-07-21 12:44:32 +1000
committerDavid Marcec <dmarcecguzman@gmail.com>2020-07-21 12:44:32 +1000
commitf3ef6e4fb1c2166345dd2ce694a91375d9bbb9d0 (patch)
tree961aa6fede3614db22e6c5dfe11f328abfb92b2e /src/video_core/texture_cache/surface_params.cpp
parent10ae1e1dadb607ac67f2e90045fb15847833b47d (diff)
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/texture_cache/surface_params.cpp')
-rw-r--r--src/video_core/texture_cache/surface_params.cpp1
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 921562c1fd..0ecf42368a 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
}
params.type = GetFormatType(params.pixel_format);
}
- params.type = GetFormatType(params.pixel_format);
// TODO: on 1DBuffer we should use the tic info.
if (tic.IsBuffer()) {
params.target = SurfaceTarget::TextureBuffer;