Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1efbaa04 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix temporary stretching when Surface is resized with Vulkan"

parents 98aab55f bc462585
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -831,6 +831,11 @@ bool VulkanManager::createSwapchain(VulkanSurface* surface) {


    createBuffers(surface, surfaceFormat, extent);
    createBuffers(surface, surfaceFormat, extent);


    // The window content is not updated (frozen) until a buffer of the window size is received.
    // This prevents temporary stretching of the window after it is resized, but before the first
    // buffer with new size is enqueued.
    native_window_set_scaling_mode(surface->mNativeWindow, NATIVE_WINDOW_SCALING_MODE_FREEZE);

    return true;
    return true;
}
}