| Index: tools/viewer/Viewer.cpp
|
| diff --git a/tools/viewer/Viewer.cpp b/tools/viewer/Viewer.cpp
|
| index da329e0b3e2bb1d519fdd761a63d807543d0125f..6f33d2c202db7e4d556e37453c6abd4e18ba26e9 100644
|
| --- a/tools/viewer/Viewer.cpp
|
| +++ b/tools/viewer/Viewer.cpp
|
| @@ -136,6 +136,10 @@ Viewer::Viewer(int argc, char** argv, void* platformData)
|
| fBackendType = get_backend_type(FLAGS_backend[0]);
|
| fWindow = Window::CreateNativeWindow(platformData);
|
| fWindow->attach(fBackendType, DisplayParams());
|
| +#if defined(SK_VULKAN) && defined(SK_BUILD_FOR_UNIX)
|
| + // Vulkan doesn't seem to handle a single refresh properly on Linux
|
| + fRefresh = (sk_app::Window::kVulkan_BackendType == fBackendType);
|
| +#endif
|
|
|
| // register callbacks
|
| fCommands.attach(fWindow);
|
| @@ -211,6 +215,10 @@ Viewer::Viewer(int argc, char** argv, void* platformData)
|
| }
|
| #endif
|
| fWindow->attach(fBackendType, DisplayParams());
|
| +#if defined(SK_VULKAN) && defined(SK_BUILD_FOR_UNIX)
|
| + // Vulkan doesn't seem to handle a single refresh properly on Linux
|
| + fRefresh = (sk_app::Window::kVulkan_BackendType == fBackendType);
|
| +#endif
|
|
|
| this->updateTitle();
|
| fWindow->inval();
|
|
|