diff --git a/include/mbgl/vulkan/context.hpp b/include/mbgl/vulkan/context.hpp index 9b5183d8f54..08e439df3f6 100644 --- a/include/mbgl/vulkan/context.hpp +++ b/include/mbgl/vulkan/context.hpp @@ -146,7 +146,7 @@ class Context final : public gfx::Context { void enqueueDeletion(std::function&& function); void submitOneTimeCommand(const std::function& function) const; - void requestSurfaceUpdate(); + void requestSurfaceUpdate(bool useDelay = true); private: struct FrameResources { diff --git a/src/mbgl/vulkan/context.cpp b/src/mbgl/vulkan/context.cpp index a6135b9b269..9f54ebed28b 100644 --- a/src/mbgl/vulkan/context.cpp +++ b/src/mbgl/vulkan/context.cpp @@ -171,13 +171,17 @@ void Context::submitOneTimeCommand(const std::function