From dd4a02d15cd0f617d2788e1e80c9ca3733256f2d Mon Sep 17 00:00:00 2001 From: David Marcec Date: Tue, 21 Jul 2020 12:44:32 +1000 Subject: [PATCH] video_core: Remove redundant pixel format type We already get the format type before converting shadow formats and during shadow formats. --- src/video_core/texture_cache/surface_params.cpp | 1 - 1 file changed, 1 deletion(-) 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;