Преглед на файлове

Merge pull request #4389 from ogniK5377/redundant-format-type

video_core: Remove redundant pixel format type
bunnei преди 6 години
родител
ревизия
5429ea0e69
променени са 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);
     // TODO: on 1DBuffer we should use the tic info.
     if (tic.IsBuffer()) {
         params.target = SurfaceTarget::TextureBuffer;