Initialize the texture destruction callback in the Metal embedder test harness (flutter/engine#44973)

This commit is contained in:
Jason Simmons
2023-08-22 15:18:26 -07:00
committed by GitHub
parent 258da2f14c
commit e6ed925c59

View File

@@ -95,7 +95,7 @@ FlutterMetalTexture EmbedderTestContextMetal::GetNextDrawable(
}
auto texture_info = metal_surface_->GetTextureInfo();
FlutterMetalTexture texture;
FlutterMetalTexture texture = {};
texture.struct_size = sizeof(FlutterMetalTexture);
texture.texture_id = texture_info.texture_id;
texture.texture =