Use default values for unknown framebuffer pixel format

This commit is contained in:
FernandoS27 committed 2018-11-21 07:33:34 -04:00
1 parent 81306c4368
commit d79f3473ae
2 files changed
+8

No files matched your search

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