Run MapLibreAndroidTestApp activities as instrumentation tests (#3594)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -20,16 +20,17 @@ public:
|
||||
std::vector<const char*> getDeviceExtensions() override { return {VK_KHR_SWAPCHAIN_EXTENSION_NAME}; }
|
||||
|
||||
void createPlatformSurface() override {
|
||||
auto& glfwBackend = static_cast<GLFWVulkanBackend&>(backend);
|
||||
auto& backendImpl = static_cast<GLFWVulkanBackend&>(backend);
|
||||
|
||||
VkSurfaceKHR surface_;
|
||||
|
||||
VkResult result = glfwCreateWindowSurface(
|
||||
glfwBackend.getInstance().get(), glfwBackend.getWindow(), nullptr, &surface_);
|
||||
backendImpl.getInstance().get(), backendImpl.getWindow(), nullptr, &surface_);
|
||||
if (result != VK_SUCCESS) throw std::runtime_error("Failed to create glfw window surface");
|
||||
|
||||
surface = vk::UniqueSurfaceKHR(
|
||||
surface_, vk::ObjectDestroy<vk::Instance, vk::DispatchLoaderDynamic>(glfwBackend.getInstance().get()));
|
||||
surface = vk::UniqueSurfaceKHR(surface_,
|
||||
vk::ObjectDestroy<vk::Instance, vk::DispatchLoaderDynamic>(
|
||||
backendImpl.getInstance().get(), nullptr, backendImpl.getDispatcher()));
|
||||
}
|
||||
|
||||
void bind() override {}
|
||||
|
||||
Reference in New Issue
Block a user