Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 2236d80

Browse files
committed
GrContext single ownership
1 parent b1a9609 commit 2236d80

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

shell/platform/darwin/graphics/FlutterDarwinContextMetal.mm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ - (instancetype)initWithMTLDevice:(id<MTLDevice>)device
6565
// when the GrDirectContext is collected.
6666
_mainContext = GrDirectContext::MakeMetal(
6767
(__bridge_retained void*)_device, (__bridge_retained void*)_commandQueue, contextOptions);
68-
_resourceContext = _mainContext;
68+
_resourceContext = GrDirectContext::MakeMetal(
69+
(__bridge_retained void*)_device, (__bridge_retained void*)_commandQueue, contextOptions);
6970

7071
if (!_mainContext || !_resourceContext) {
7172
FML_DLOG(ERROR) << "Could not create Skia Metal contexts.";

0 commit comments

Comments
 (0)