| 391 | } |
| 392 | |
| 393 | void PrepareDestroyContextFactory(ref_ptr<dp::GraphicsContextFactory> contextFactory) |
| 394 | { |
| 395 | auto const api = contextFactory->GetDrawContext()->GetApiVersion(); |
| 396 | if (api == dp::ApiVersion::OpenGLES3) |
| 397 | { |
| 398 | // Do nothing |
| 399 | } |
| 400 | else if (api == dp::ApiVersion::Vulkan) |
| 401 | { |
| 402 | ref_ptr<LinuxVulkanContextFactory> linuxContextFactory = contextFactory; |
| 403 | linuxContextFactory->ResetSurface(); |
| 404 | } |
| 405 | else |
| 406 | { |
| 407 | ASSERT(false, ("API is not available yet")); |
| 408 | } |
| 409 | } |
| 410 | |
| 411 | void UpdateContentScale(GLFWwindow * window, float scale) |
| 412 | { |
no test coverage detected