Skip to content

Commit

Permalink
workaround for testExtrudedPolygons
Browse files Browse the repository at this point in the history
Test fails sometime, apply same workaround than others
  • Loading branch information
vcloarec authored and PeterPetrik committed Mar 11, 2020
1 parent d1c13a9 commit dd6af4c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/src/3d/testqgs3drendering.cpp
Expand Up @@ -322,6 +322,11 @@ void TestQgs3DRendering::testExtrudedPolygons()
engine.setRootEntity( scene );

scene->cameraController()->setLookingAtPoint( QgsVector3D( 0, 0, 250 ), 500, 45, 0 );

// When running the test on Travis, it would initially return empty rendered image.
// Capturing the initial image and throwing it away fixes that. Hopefully we will
// find a better fix in the future.
Qgs3DUtils::captureSceneImage( engine, scene );
QImage img = Qgs3DUtils::captureSceneImage( engine, scene );

QVERIFY( renderCheck( "polygon3d_extrusion", img, 40 ) );
Expand Down

0 comments on commit dd6af4c

Please sign in to comment.