From e9da6794f0d4d63e8cf5baadb5edb1b3bf6bff1c Mon Sep 17 00:00:00 2001 From: Paul Dettorer Hervot Date: Fri, 11 Dec 2015 16:46:51 +0100 Subject: [PATCH] GraphicsFramebufferWidget::BytesPerPixel: Assert on unknown format --- src/citra_qt/debugger/graphics_framebuffer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/citra_qt/debugger/graphics_framebuffer.cpp b/src/citra_qt/debugger/graphics_framebuffer.cpp index c30e75933..5902c9ad2 100644 --- a/src/citra_qt/debugger/graphics_framebuffer.cpp +++ b/src/citra_qt/debugger/graphics_framebuffer.cpp @@ -346,5 +346,8 @@ u32 GraphicsFramebufferWidget::BytesPerPixel(GraphicsFramebufferWidget::Format f case Format::RGBA4: case Format::D16: return 2; + case Format::Unknown: + ASSERT_MSG(false, "Unknown frame buffer format."); + return 0; } }