diff options
| author | 2019-10-15 21:53:13 -0400 | |
|---|---|---|
| committer | 2019-10-15 21:53:15 -0400 | |
| commit | cf9e13c255a37bda889a88660e3b00923abbcf47 (patch) | |
| tree | b225dfac35c9923f7d37af790f4656b0acd76e6b /src | |
| parent | Merge pull request #2977 from lioncash/algorithm (diff) | |
| download | yuzu-cf9e13c255a37bda889a88660e3b00923abbcf47.tar.gz yuzu-cf9e13c255a37bda889a88660e3b00923abbcf47.tar.xz yuzu-cf9e13c255a37bda889a88660e3b00923abbcf47.zip | |
video_core/surface: Add missing break in PixelFormatFromTextureFormat()
Prevents fallthrough into the following case.
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/surface.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/video_core/surface.cpp b/src/video_core/surface.cpp index 250afc6d6..ef6b3592e 100644 --- a/src/video_core/surface.cpp +++ b/src/video_core/surface.cpp | |||
| @@ -252,6 +252,7 @@ PixelFormat PixelFormatFromTextureFormat(Tegra::Texture::TextureFormat format, | |||
| 252 | default: | 252 | default: |
| 253 | break; | 253 | break; |
| 254 | } | 254 | } |
| 255 | break; | ||
| 255 | case Tegra::Texture::TextureFormat::R32_G32_B32_A32: | 256 | case Tegra::Texture::TextureFormat::R32_G32_B32_A32: |
| 256 | switch (component_type) { | 257 | switch (component_type) { |
| 257 | case Tegra::Texture::ComponentType::FLOAT: | 258 | case Tegra::Texture::ComponentType::FLOAT: |