FIX: Validation layers not found by triangle-vulkan test

This commit is contained in:
pyroyoyo 2024-10-28 10:39:15 +01:00
parent b35641f4a3
commit cc0f8572ca

View File

@ -1573,7 +1573,7 @@ static void demo_init_vk(struct demo *demo) {
demo->enabled_layer_count = 0; demo->enabled_layer_count = 0;
char *instance_validation_layers_alt1[] = { char *instance_validation_layers_alt1[] = {
"VK_LAYER_LUNARG_standard_validation" "VK_LAYER_KHRONOS_validation"
}; };
char *instance_validation_layers_alt2[] = { char *instance_validation_layers_alt2[] = {
@ -1605,7 +1605,7 @@ static void demo_init_vk(struct demo *demo) {
instance_layers); instance_layers);
if (validation_found) { if (validation_found) {
demo->enabled_layer_count = ARRAY_SIZE(instance_validation_layers_alt1); demo->enabled_layer_count = ARRAY_SIZE(instance_validation_layers_alt1);
demo->enabled_layers[0] = "VK_LAYER_LUNARG_standard_validation"; demo->enabled_layers[0] = "VK_LAYER_KHRONOS_validation";
validation_layer_count = 1; validation_layer_count = 1;
} else { } else {
// use alternative set of validation layers // use alternative set of validation layers