Skip to content

Commit

Permalink
Fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Flone-dnb committed Jan 1, 2024
1 parent 43254c3 commit 97fee8f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/engine_tests/src/game/nodes/MeshNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -694,8 +694,8 @@ TEST_CASE("check the number of pipelines on spawned mesh material slots") {
// Enable transparency on the second material slot.
pMeshNode->getMaterial(1)->setEnableTransparency(true);

// There should now be 3 pipelines (1 opaque + depth only + transparent).
REQUIRE(pPipelineManager->getCurrentGraphicsPipelineCount() == 3);
// There should now be 4 pipelines (1 opaque + depth only + shadow mapping + transparent).
REQUIRE(pPipelineManager->getCurrentGraphicsPipelineCount() == 4);
}

{
Expand All @@ -707,8 +707,8 @@ TEST_CASE("check the number of pipelines on spawned mesh material slots") {
getWorldRootNode()->addChildNode(pMeshNode);
pMeshNode->setWorldLocation(glm::vec3(1.0F, 3.0F, 0.0F));

// There should still be 3 pipelines.
REQUIRE(pPipelineManager->getCurrentGraphicsPipelineCount() == 3);
// There should still be 4 pipelines.
REQUIRE(pPipelineManager->getCurrentGraphicsPipelineCount() == 4);
}

getWindow()->close();
Expand Down

0 comments on commit 97fee8f

Please sign in to comment.