mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-25 06:30:14 +00:00
GraphicsFramebufferWidget::BytesPerPixel: Assert on unknown format
This commit is contained in:
parent
b77042a920
commit
e9da6794f0
@ -346,5 +346,8 @@ u32 GraphicsFramebufferWidget::BytesPerPixel(GraphicsFramebufferWidget::Format f
|
|||||||
case Format::RGBA4:
|
case Format::RGBA4:
|
||||||
case Format::D16:
|
case Format::D16:
|
||||||
return 2;
|
return 2;
|
||||||
|
case Format::Unknown:
|
||||||
|
ASSERT_MSG(false, "Unknown frame buffer format.");
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user