Skip to content

Commit

Permalink
Refined the handling of CompileResults::result to ensure invalid resu…
Browse files Browse the repository at this point in the history
…lts get passed back.
  • Loading branch information
robertosfield committed Apr 26, 2024
1 parent ec6e790 commit 707a8f3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/vsg/app/CompileManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ void CompileResult::reset()

void CompileResult::add(const CompileResult& cr)
{
if (result == VK_INCOMPLETE) result = cr.result;
if (result == VK_INCOMPLETE || result == VK_SUCCESS)
{
result = cr.result;
}

if (cr.maxSlot > maxSlot) maxSlot = cr.maxSlot;
if (!containsPagedLOD) containsPagedLOD = cr.containsPagedLOD;

Expand Down

0 comments on commit 707a8f3

Please sign in to comment.