From 0a9fedfac90e811f3c007df4484891c34eb1e6bb Mon Sep 17 00:00:00 2001 From: FernandoS27 Date: Tue, 20 Nov 2018 21:27:34 -0400 Subject: Use default values for unknown framebuffer pixel format --- src/video_core/gpu.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/video_core/gpu.cpp') diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp index 83c7e5b0b..51b3904f6 100644 --- a/src/video_core/gpu.cpp +++ b/src/video_core/gpu.cpp @@ -17,6 +17,8 @@ u32 FramebufferConfig::BytesPerPixel(PixelFormat format) { switch (format) { case PixelFormat::ABGR8: return 4; + default: + return 4; } UNREACHABLE(); -- cgit v1.2.3