Use default values for unknown framebuffer pixel format
This commit is contained in:
parent
b6d2c64f4d
commit
0a9fedfac9
2 changed files with 8 additions and 0 deletions
|
@ -17,6 +17,8 @@ u32 FramebufferConfig::BytesPerPixel(PixelFormat format) {
|
|||
switch (format) {
|
||||
case PixelFormat::ABGR8:
|
||||
return 4;
|
||||
default:
|
||||
return 4;
|
||||
}
|
||||
|
||||
UNREACHABLE();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue