Просмотр исходного кода

video_core: Remove redundant pixel format type

We already get the format type before converting shadow formats and during shadow formats.
David Marcec 6 лет назад
Родитель
Сommit
dd4a02d15c
1 измененных файлов с 0 добавлено и 1 удалено
  1. 0 1
      src/video_core/texture_cache/surface_params.cpp

+ 0 - 1
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);
     }
     }
-    params.type = GetFormatType(params.pixel_format);
     // TODO: on 1DBuffer we should use the tic info.
     // TODO: on 1DBuffer we should use the tic info.
     if (tic.IsBuffer()) {
     if (tic.IsBuffer()) {
         params.target = SurfaceTarget::TextureBuffer;
         params.target = SurfaceTarget::TextureBuffer;