diff options
author | bunnei <bunneidev@gmail.com> | 2016-04-24 08:02:45 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2016-04-24 08:02:45 +0200 |
commit | 0964a3ff530f2eb5b7ecdf9dfbb74deea890352d (patch) | |
tree | c566efaf69f8d3564d1e678a0a31981a52794a8a /src/citra_qt | |
parent | Merge pull request #1705 from LittleWhite-tb/compat_gcc49 (diff) | |
parent | assert: Add _MSG variations for UNREACHABLE and UNIMPLEMENTED (diff) | |
download | yuzu-0964a3ff530f2eb5b7ecdf9dfbb74deea890352d.tar yuzu-0964a3ff530f2eb5b7ecdf9dfbb74deea890352d.tar.gz yuzu-0964a3ff530f2eb5b7ecdf9dfbb74deea890352d.tar.bz2 yuzu-0964a3ff530f2eb5b7ecdf9dfbb74deea890352d.tar.lz yuzu-0964a3ff530f2eb5b7ecdf9dfbb74deea890352d.tar.xz yuzu-0964a3ff530f2eb5b7ecdf9dfbb74deea890352d.tar.zst yuzu-0964a3ff530f2eb5b7ecdf9dfbb74deea890352d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/citra_qt/debugger/graphics_framebuffer.cpp | 6 |
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)); } } |