Skip to content

Commit

Permalink
Update how create a null GrVkAlloc object. (flutter#4714)
Browse files Browse the repository at this point in the history
When resetting to a null GrVkAlloc alloc use the default ctor instead of the { } initializer. This is needed so an upcoming Skia change doesn't break the flutter build.
  • Loading branch information
egdaniel authored and brianosman committed Feb 26, 2018
1 parent 5d31ce7 commit c97883d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vulkan/vulkan_swapchain.cc
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ sk_sp<SkSurface> VulkanSwapchain::CreateSkiaSurface(GrContext* gr_context,

const GrVkImageInfo image_info = {
.fImage = image,
.fAlloc = {VK_NULL_HANDLE, 0, 0, 0},
.fAlloc = GrVkAlloc(),
.fImageTiling = VK_IMAGE_TILING_OPTIMAL,
.fImageLayout = VK_IMAGE_LAYOUT_UNDEFINED,
.fFormat = surface_format_.format,
Expand Down

0 comments on commit c97883d

Please sign in to comment.