Skip image rendering in CLI rather than hard abort

pull/997/head
robnee 2021-04-03 15:11:10 -04:00 committed by ruevs
parent 9020b83b9b
commit 3ed151bf90
4 changed files with 4 additions and 5 deletions

View File

@ -190,11 +190,11 @@ void SurfaceRenderer::DrawFaces(const SMesh &m, const std::vector<uint32_t> &fac
void SurfaceRenderer::DrawPixmap(std::shared_ptr<const Pixmap> pm, void SurfaceRenderer::DrawPixmap(std::shared_ptr<const Pixmap> pm,
const Vector &o, const Vector &u, const Vector &v, const Vector &o, const Vector &u, const Vector &v,
const Point2d &ta, const Point2d &tb, hFill hcf) { const Point2d &ta, const Point2d &tb, hFill hcf) {
ssassert(false, "Not implemented"); dbp("Not implemented");
} }
void SurfaceRenderer::InvalidatePixmap(std::shared_ptr<const Pixmap> pm) { void SurfaceRenderer::InvalidatePixmap(std::shared_ptr<const Pixmap> pm) {
ssassert(false, "Not implemented"); dbp("Not implemented");
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@ -2,13 +2,12 @@
TEST_CASE(normal_roundtrip) { TEST_CASE(normal_roundtrip) {
CHECK_LOAD("normal.slvs"); CHECK_LOAD("normal.slvs");
// Can't render images through cairo for now. CHECK_RENDER("normal.png");
// CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs"); CHECK_SAVE("normal.slvs");
} }
TEST_CASE(linked_roundtrip) { TEST_CASE(linked_roundtrip) {
CHECK_LOAD("linked.slvs"); CHECK_LOAD("linked.slvs");
// CHECK_RENDER("linked.png"); CHECK_RENDER("linked.png");
CHECK_SAVE("linked.slvs"); CHECK_SAVE("linked.slvs");
} }