GraphicsFramebufferWidget::BytesPerPixel: Assert on unknown format

This commit is contained in:
Paul Dettorer Hervot 2015-12-11 16:46:51 +01:00 committed by Paul "Dettorer" Hervot
parent b77042a920
commit e9da6794f0

View File

@ -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;
} }
} }