summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-08-07 09:33:58 -0400
committerGitHub <noreply@github.com>2020-08-07 09:33:58 -0400
commit5429ea0e6903ce7a8f7d126627c802e26d76fc08 (patch)
tree326a31f9793b9e97c9816e466c4133c11dc57423
parent62fa00f586ba193e18115062d6e53c1034b3b415 (diff)
parentdd4a02d15cd0f617d2788e1e80c9ca3733256f2d (diff)
Merge pull request #4389 from ogniK5377/redundant-format-type
video_core: Remove redundant pixel format type
-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 9a98f0e98..e614a92df 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;