Use default values for unknown framebuffer pixel format

This commit is contained in:
FernandoS27 2018-11-20 21:27:34 -04:00
parent b6d2c64f4d
commit 0a9fedfac9
2 changed files with 8 additions and 0 deletions

View file

@ -17,6 +17,8 @@ u32 FramebufferConfig::BytesPerPixel(PixelFormat format) {
switch (format) {
case PixelFormat::ABGR8:
return 4;
default:
return 4;
}
UNREACHABLE();