Metal re-apply: throw an NSException when attempting to draw with invalid program (#7741)

This commit is contained in:
Ben Doherty
2024-04-05 17:50:07 -07:00
committed by Benjamin Doherty
parent d468303bc9
commit de1edbdf25

View File

@@ -1634,7 +1634,7 @@ void MetalDriver::bindPipeline(PipelineState ps) {
return;
}
ASSERT_PRECONDITION(bool(functions), "Attempting to bind an invalid Metal program.");
functions.validate();
auto [fragment, vertex] = functions.getRasterFunctions();