Metal: Free pipeline descriptor on error.
This commit is contained in:
parent
8846433ae7
commit
3ef4121d4e
|
@ -110,6 +110,7 @@ namespace metal {
|
|||
if (error != nil) {
|
||||
NSLog(@" error => %@", error);
|
||||
builder->HandleError("Error creating pipeline state");
|
||||
[descriptor release];
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue