Index: tools/viewer/sk_app/unix/VulkanWindowContext_unix.cpp |
diff --git a/tools/viewer/sk_app/unix/VulkanWindowContext_unix.cpp b/tools/viewer/sk_app/unix/VulkanWindowContext_unix.cpp |
index 02bf516b22fd63e3e621b982c00c54a024d9b91c..ddfc8e3068d39583c86ea76dc39e1c57c3662fa4 100644 |
--- a/tools/viewer/sk_app/unix/VulkanWindowContext_unix.cpp |
+++ b/tools/viewer/sk_app/unix/VulkanWindowContext_unix.cpp |
@@ -39,7 +39,7 @@ |
surfaceCreateInfo.pNext = nullptr; |
surfaceCreateInfo.flags = 0; |
surfaceCreateInfo.connection = XGetXCBConnection(unixPlatformData->fDisplay); |
- surfaceCreateInfo.window = unixPlatformData->fWindow; |
+ surfaceCreateInfo.window = unixPlatformData->fHWnd; |
VkResult res = createXcbSurfaceKHR(instance, &surfaceCreateInfo, nullptr, &surface); |
if (VK_SUCCESS != res) { |
@@ -64,11 +64,10 @@ |
reinterpret_cast<ContextPlatformData_unix*>(platformData); |
Display* display = unixPlatformData->fDisplay; |
- VisualID visualID = unixPlatformData->fVisualInfo->visualid; |
VkBool32 check = getPhysicalDeviceXcbPresentationSupportKHR(physDev, |
queueFamilyIndex, |
XGetXCBConnection(display), |
- visualID); |
+ unixPlatformData->fVisualID); |
return (VK_FALSE != check); |
} |