Fix warnings in Vulkan test

This commit is contained in:
Camilla Löwy 2017-07-17 21:21:10 +02:00
parent 2d8d8f5917
commit c0bc10427c

View File

@ -1721,7 +1721,7 @@ static void demo_init_vk(struct demo *demo) {
err = vkEnumerateInstanceLayerProperties(&instance_layer_count, NULL);
assert(!err);
instance_validation_layers = instance_validation_layers_alt1;
instance_validation_layers = (const char**) instance_validation_layers_alt1;
if (instance_layer_count > 0) {
VkLayerProperties *instance_layers =
malloc(sizeof (VkLayerProperties) * instance_layer_count);
@ -1740,7 +1740,8 @@ static void demo_init_vk(struct demo *demo) {
validation_layer_count = 1;
} else {
// use alternative set of validation layers
instance_validation_layers = instance_validation_layers_alt2;
instance_validation_layers =
(const char**) instance_validation_layers_alt2;
demo->enabled_layer_count = ARRAY_SIZE(instance_validation_layers_alt2);
validation_found = demo_check_layers(
ARRAY_SIZE(instance_validation_layers_alt2),