Skip to content
Snippets Groups Projects
Commit 2850a223 authored by Sam Spilsbury's avatar Sam Spilsbury
Browse files

debugger: Warn if we reach an unreachable format

parent fdd7e9e8
No related branches found
No related tags found
No related merge requests found
......@@ -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));
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment