From cf9e13c255a37bda889a88660e3b00923abbcf47 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 15 Oct 2019 21:53:13 -0400 Subject: video_core/surface: Add missing break in PixelFormatFromTextureFormat() Prevents fallthrough into the following case. --- src/video_core/surface.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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, default: break; } + break; case Tegra::Texture::TextureFormat::R32_G32_B32_A32: switch (component_type) { case Tegra::Texture::ComponentType::FLOAT: -- cgit v1.2.3