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

Skip to content

Commit 26b8ca8

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

code/sampler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1270,7 +1270,7 @@ class HelloTriangleApplication {
12701270
VkPhysicalDeviceFeatures supportedFeatures;
12711271
vkGetPhysicalDeviceFeatures(device, &supportedFeatures);
12721272

1273-
return indices.isComplete() && extensionsSupported && supportedFeatures.samplerAnisotropy;
1273+
return indices.isComplete() && extensionsSupported && swapChainAdequate && supportedFeatures.samplerAnisotropy;
12741274
}
12751275

12761276
bool checkDeviceExtensionSupport(VkPhysicalDevice device) {

0 commit comments

Comments
 (0)