mirror of
https://github.com/glfw/glfw.git
synced 2024-11-14 02:31:46 +00:00
FIX: Validation layers not found by triangle-vulkan test
This commit is contained in:
parent
b35641f4a3
commit
cc0f8572ca
@ -1573,7 +1573,7 @@ static void demo_init_vk(struct demo *demo) {
|
||||
demo->enabled_layer_count = 0;
|
||||
|
||||
char *instance_validation_layers_alt1[] = {
|
||||
"VK_LAYER_LUNARG_standard_validation"
|
||||
"VK_LAYER_KHRONOS_validation"
|
||||
};
|
||||
|
||||
char *instance_validation_layers_alt2[] = {
|
||||
@ -1605,7 +1605,7 @@ static void demo_init_vk(struct demo *demo) {
|
||||
instance_layers);
|
||||
if (validation_found) {
|
||||
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;
|
||||
} else {
|
||||
// use alternative set of validation layers
|
||||
|
Loading…
Reference in New Issue
Block a user