Explorar o código

video_core/surface: Add missing break in PixelFormatFromTextureFormat()

Prevents fallthrough into the following case.
Lioncash %!s(int64=6) %!d(string=hai) anos
pai
achega
cf9e13c255
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/video_core/surface.cpp

+ 1 - 0
src/video_core/surface.cpp

@@ -252,6 +252,7 @@ PixelFormat PixelFormatFromTextureFormat(Tegra::Texture::TextureFormat format,
         default:
             break;
         }
+        break;
     case Tegra::Texture::TextureFormat::R32_G32_B32_A32:
         switch (component_type) {
         case Tegra::Texture::ComponentType::FLOAT: