mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
debugger: Warn if we reach an unreachable format
This commit is contained in:
parent
fdd7e9e86a
commit
2850a22359
1 changed files with 6 additions and 0 deletions
|
@ -346,5 +346,11 @@ u32 GraphicsFramebufferWidget::BytesPerPixel(GraphicsFramebufferWidget::Format f
|
||||||
case Format::RGBA4:
|
case Format::RGBA4:
|
||||||
case Format::D16:
|
case Format::D16:
|
||||||
return 2;
|
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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue