aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBenjamin Barenblat <bbaren@mit.edu>2015-08-15 16:38:03 -0400
committerBenjamin Barenblat <bbaren@mit.edu>2015-08-15 16:38:03 -0400
commit8c47c09eea366ae299e91819ff0393f3f99e2182 (patch)
tree7018933c2fd67be0b0ec9dc85ddc44193d798631
parentc0a87bc89f0c7fee0a3f3371b7b60b4cebb248b1 (diff)
Print error on unknown framebuffer formatHEADmaster
Trigger a `LOG_CRITICAL` if `GraphicsFramebufferWidget::BytesPerPixel` gets called with `GraphicsFramebufferWidget::Format::Unknown`.
-rw-r--r--src/citra_qt/debugger/graphics_framebuffer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/citra_qt/debugger/graphics_framebuffer.cpp b/src/citra_qt/debugger/graphics_framebuffer.cpp
index 39eefbf7..c88b7c96 100644
--- a/src/citra_qt/debugger/graphics_framebuffer.cpp
+++ b/src/citra_qt/debugger/graphics_framebuffer.cpp
@@ -346,5 +346,9 @@ u32 GraphicsFramebufferWidget::BytesPerPixel(GraphicsFramebufferWidget::Format f
case Format::RGBA4:
case Format::D16:
return 2;
+ default:
+ LOG_CRITICAL(Debug, "Unknown framebuffer format");
+ UNIMPLEMENTED();
+ return 0;
}
}