GraphicsFramebufferWidget::BytesPerPixel: Assert on unknown format
This commit is contained in:
committed by
Paul "Dettorer" Hervot
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user