Ver Fonte

video_core/surface: Add missing break in PixelFormatFromTextureFormat()

Prevents fallthrough into the following case.
Lioncash há 6 anos atrás
pai
commit
cf9e13c255
1 ficheiros alterados com 1 adições e 0 exclusões
  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:
         default:
             break;
             break;
         }
         }
+        break;
     case Tegra::Texture::TextureFormat::R32_G32_B32_A32:
     case Tegra::Texture::TextureFormat::R32_G32_B32_A32:
         switch (component_type) {
         switch (component_type) {
         case Tegra::Texture::ComponentType::FLOAT:
         case Tegra::Texture::ComponentType::FLOAT: