Metal re-apply: throw an NSException when attempting to draw with invalid program (#7741)
This commit is contained in:
committed by
Benjamin Doherty
parent
d468303bc9
commit
de1edbdf25
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user