mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 23:26:24 +00:00
Metal: Free pipeline descriptor on error.
This commit is contained in:
committed by
Corentin Wallez
parent
8846433ae7
commit
3ef4121d4e
@@ -110,6 +110,7 @@ namespace metal {
|
|||||||
if (error != nil) {
|
if (error != nil) {
|
||||||
NSLog(@" error => %@", error);
|
NSLog(@" error => %@", error);
|
||||||
builder->HandleError("Error creating pipeline state");
|
builder->HandleError("Error creating pipeline state");
|
||||||
|
[descriptor release];
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user