Index: tools/vulkan/VulkanTestContext.cpp |
diff --git a/tools/vulkan/VulkanTestContext.cpp b/tools/vulkan/VulkanTestContext.cpp |
index 4a4c2192b1a30c45f7fa3b696fd882c8e0f9f028..f9f037daecccde1f9c215f44ad1ffcaac19c07f8 100644 |
--- a/tools/vulkan/VulkanTestContext.cpp |
+++ b/tools/vulkan/VulkanTestContext.cpp |
@@ -79,8 +79,7 @@ void VulkanTestContext::initializeContext(void* platformData) { |
return; |
} |
- // get this info from somewhere? |
- if (!this->createSwapchain(1024, 768)) { |
+ if (!this->createSwapchain(-1, -1)) { |
this->destroyContext(); |
return; |
} |
@@ -152,7 +151,7 @@ bool VulkanTestContext::createSwapchain(uint32_t width, uint32_t height) |
extent.height = height; |
} |
- // clamp width; to protect us from broken hints? |
+ // clamp width; to protect us from broken hints |
if (extent.width < caps.minImageExtent.width) { |
extent.width = caps.minImageExtent.width; |
} else if (extent.width > caps.maxImageExtent.width) { |