summaryrefslogtreecommitdiffstats
path: root/src/citra_qt/debugger
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2016-03-27 06:02:22 +0200
committerSam Spilsbury <smspillaz@gmail.com>2016-04-23 05:54:02 +0200
commit2850a223592edad677e2fcd31a5f53b057c4ecc8 (patch)
treefcc7826e5dccc603411ec128df7cd51785635ff2 /src/citra_qt/debugger
parentmicroprofileui: Use correct printf specifier (diff)
downloadyuzu-2850a223592edad677e2fcd31a5f53b057c4ecc8.tar
yuzu-2850a223592edad677e2fcd31a5f53b057c4ecc8.tar.gz
yuzu-2850a223592edad677e2fcd31a5f53b057c4ecc8.tar.bz2
yuzu-2850a223592edad677e2fcd31a5f53b057c4ecc8.tar.lz
yuzu-2850a223592edad677e2fcd31a5f53b057c4ecc8.tar.xz
yuzu-2850a223592edad677e2fcd31a5f53b057c4ecc8.tar.zst
yuzu-2850a223592edad677e2fcd31a5f53b057c4ecc8.zip
Diffstat (limited to 'src/citra_qt/debugger')
-rw-r--r--src/citra_qt/debugger/graphics_framebuffer.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/citra_qt/debugger/graphics_framebuffer.cpp b/src/citra_qt/debugger/graphics_framebuffer.cpp
index c30e75933..68cff78b2 100644
--- a/src/citra_qt/debugger/graphics_framebuffer.cpp
+++ b/src/citra_qt/debugger/graphics_framebuffer.cpp
@@ -346,5 +346,11 @@ u32 GraphicsFramebufferWidget::BytesPerPixel(GraphicsFramebufferWidget::Format f
case Format::RGBA4:
case Format::D16:
return 2;
+ default:
+ UNREACHABLE_MSG("GraphicsFramebufferWidget::BytesPerPixel: this "
+ "should not be reached as this function should "
+ "be given a format which is in "
+ "GraphicsFramebufferWidget::Format. Instead got %i",
+ static_cast<int>(format));
}
}