Skip to content

Commit

Permalink
Metal re-apply: throw an NSException when attempting to draw with inv…
Browse files Browse the repository at this point in the history
…alid program (google#7741)
  • Loading branch information
bejado authored Apr 6, 2024
1 parent 28da328 commit 7a61385
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filament/backend/src/metal/MetalDriver.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1634,7 +1634,7 @@
return;
}

ASSERT_PRECONDITION(bool(functions), "Attempting to bind an invalid Metal program.");
functions.validate();

auto [fragment, vertex] = functions.getRasterFunctions();

Expand Down

0 comments on commit 7a61385

Please sign in to comment.