Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ddd9cca

Browse files
author
Diana
authored
Add missing swapChainAdequate check
1 parent f63ce7c commit ddd9cca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

06_Texture_mapping/01_Image_view_and_sampler.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ bool isDeviceSuitable(VkPhysicalDevice device) {
333333
VkPhysicalDeviceFeatures supportedFeatures;
334334
vkGetPhysicalDeviceFeatures(device, &supportedFeatures);
335335

336-
return indices.isComplete() && extensionsSupported && supportedFeatures.samplerAnisotropy;
336+
return indices.isComplete() && extensionsSupported && swapChainAdequate && supportedFeatures.samplerAnisotropy;
337337
}
338338
```
339339

0 commit comments

Comments
 (0)