Skip to content

Commit 707a8f3

Browse files
committed
Refined the handling of CompileResults::result to ensure invalid results get passed back.
1 parent ec6e790 commit 707a8f3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/vsg/app/CompileManager.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ void CompileResult::reset()
3333

3434
void CompileResult::add(const CompileResult& cr)
3535
{
36-
if (result == VK_INCOMPLETE) result = cr.result;
36+
if (result == VK_INCOMPLETE || result == VK_SUCCESS)
37+
{
38+
result = cr.result;
39+
}
40+
3741
if (cr.maxSlot > maxSlot) maxSlot = cr.maxSlot;
3842
if (!containsPagedLOD) containsPagedLOD = cr.containsPagedLOD;
3943

0 commit comments

Comments
 (0)