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

Commit a0800f5

Browse files
committed
fix test
1 parent 23ee433 commit a0800f5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

shell/platform/darwin/macos/framework/Source/FlutterMetalSurfaceManagerTest.mm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ - (instancetype)init {
5353
FlutterMetalSurfaceManager* surfaceManager = CreateSurfaceManager();
5454
CGSize size = CGSizeMake(100, 50);
5555
[surfaceManager ensureSurfaceSize:size];
56+
[surfaceManager renderBuffer]; // make sure we have back buffer
5657
[surfaceManager swapBuffers];
5758
id<MTLTexture> texture =
5859
(reinterpret_cast<FlutterMetalRenderBackingStore*>([surfaceManager renderBuffer])).texture;

0 commit comments

Comments
 (0)