mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-14 00:56:05 +00:00
Metal: Free pipeline descriptor on error.
This commit is contained in:
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user